Enum stm32f4::Variant[][src]

pub enum Variant<U, T> {
    Val(T),
    Res(U),
}

Used if enumerated values cover not the whole range

Variants

Val(T)

Expected variant

Res(U)

Raw bits

Trait Implementations

impl<U: Clone, T: Clone> Clone for Variant<U, T>[src]

impl<U: Copy, T: Copy> Copy for Variant<U, T>[src]

impl<U: PartialEq, T: PartialEq> PartialEq<Variant<U, T>> for Variant<U, T>[src]

impl<U, T> StructuralPartialEq for Variant<U, T>[src]

Auto Trait Implementations

impl<U, T> Send for Variant<U, T> where
    T: Send,
    U: Send
[src]

impl<U, T> Sync for Variant<U, T> where
    T: Sync,
    U: Sync
[src]

impl<U, T> Unpin for Variant<U, T> where
    T: Unpin,
    U: Unpin
[src]

Blanket Implementations

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

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

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

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.