[−][src]Enum sum_type::generated_example::MySumType
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]
fn variants(&self) -> &'static [&'static str]
[src]
fn variant(&self) -> &'static str
[src]
fn downcast_ref<T: Any>(&self) -> Option<&T>
[src]
fn downcast_mut<T: Any>(&mut self) -> Option<&mut T>
[src]
fn variant_is<T: Any>(&self) -> bool
[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.
fn try_from(other: MySumType) -> Result<u32, Self::Error>
[src]
impl TryFrom<MySumType> for &'static str
[src]
type Error = InvalidType
The type returned in the event of a conversion error.
fn try_from(other: MySumType) -> Result<&'static str, Self::Error>
[src]
impl TryFrom<MySumType> for &'static [u8]
[src]
type Error = InvalidType
The type returned in the event of a conversion error.
fn try_from(other: MySumType) -> Result<&'static [u8], Self::Error>
[src]
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]
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,