pub struct TypeEnum<'a> { /* private fields */ }
Expand description
Enum type details.
Implementations§
source§impl<'a> TypeEnum<'a>
impl<'a> TypeEnum<'a>
sourcepub fn variants(
&'a self,
) -> impl Iterator<Item = (&'a str, TypeEnumVariant<'a>)>
pub fn variants( &'a self, ) -> impl Iterator<Item = (&'a str, TypeEnumVariant<'a>)>
Get name and information of each enum variant.
sourcepub fn variants_info(&'a self) -> impl Iterator<Item = TypeEnumVariantInfo<'a>>
pub fn variants_info(&'a self) -> impl Iterator<Item = TypeEnumVariantInfo<'a>>
Get all information for each enum variant.
Auto Trait Implementations§
impl<'a> Freeze for TypeEnum<'a>
impl<'a> RefUnwindSafe for TypeEnum<'a>
impl<'a> Send for TypeEnum<'a>
impl<'a> Sync for TypeEnum<'a>
impl<'a> Unpin for TypeEnum<'a>
impl<'a> UnwindSafe for TypeEnum<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more