[][src]Enum sum_type::generated_example::MySumType

pub enum MySumType {
    First(u32),
    Second(&'static str),
    Third(&'static [u8]),
}

Variants

First(u32)

The first variant.

Second(&'static str)

The second variant.

Third(&'static [u8])

A list of bytes.

Trait Implementations

impl SumType for MySumType[src]

impl PartialEq<MySumType> for MySumType[src]

impl Debug for MySumType[src]

impl TryFrom<MySumType> for u32[src]

type Error = InvalidType

The type returned in the event of a conversion error.

impl TryFrom<MySumType> for &'static str[src]

type Error = InvalidType

The type returned in the event of a conversion error.

impl TryFrom<MySumType> for &'static [u8][src]

type Error = InvalidType

The type returned in the event of a conversion error.

impl From<u32> for MySumType[src]

impl From<&'static str> for MySumType[src]

impl From<&'static [u8]> for MySumType[src]

impl Copy for MySumType[src]

impl Clone for MySumType[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Unpin for MySumType

impl Send for MySumType

impl Sync for MySumType

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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