[][src]Struct show_notes::e008::GenericContainer

pub struct GenericContainer<T, U> {
    pub t: T,
    pub u: U,
}

This is just a container which can hold any two types.

These types can even be the same, but they don't have to be. Moreover, they can be generic types themselves; as you can see in the tests below, you can use built-in or user-created generic types within this generic type.

Fields

t: Tu: U

Auto Trait Implementations

impl<T, U> Send for GenericContainer<T, U> where
    T: Send,
    U: Send

impl<T, U> Unpin for GenericContainer<T, U> where
    T: Unpin,
    U: Unpin

impl<T, U> Sync for GenericContainer<T, U> where
    T: Sync,
    U: Sync

impl<T, U> RefUnwindSafe for GenericContainer<T, U> where
    T: RefUnwindSafe,
    U: RefUnwindSafe

impl<T, U> UnwindSafe for GenericContainer<T, U> where
    T: UnwindSafe,
    U: UnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]