[][src]Enum conjure_codegen::example_types::product::enum_example::EnumExample

pub enum EnumExample {
    One,
    Two,
    Unknown(Unknown),
}

This enumerates the numbers 1:2.

Variants

One
Two
Unknown(Unknown)

An unknown variant.

Methods

impl EnumExample[src]

pub fn as_str(&self) -> &str[src]

Returns the string representation of the enum.

Trait Implementations

impl Clone for EnumExample[src]

impl Eq for EnumExample[src]

impl Ord for EnumExample[src]

impl PartialEq<EnumExample> for EnumExample[src]

impl PartialOrd<EnumExample> for EnumExample[src]

impl Display for EnumExample[src]

impl Debug for EnumExample[src]

impl FromStr for EnumExample[src]

type Err = ParseEnumError

The associated error which can be returned from parsing.

impl Hash for EnumExample[src]

impl StructuralPartialEq for EnumExample[src]

impl StructuralEq for EnumExample[src]

impl Serialize for EnumExample[src]

impl<'de> Deserialize<'de> for EnumExample[src]

impl Plain for EnumExample[src]

impl FromPlain for EnumExample[src]

type Err = ParseEnumError

The error type returned when parsing fails.

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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> 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]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> ToPlain for T where
    T: Plain + ?Sized
[src]