[][src]Struct abi_stable::nonexhaustive_enum::EnumInfo

#[repr(C)]pub struct EnumInfo { /* fields omitted */ }

Contains miscelaneous information about an enum.

Implementations

impl EnumInfo[src]

pub fn type_name(&self) -> &'static str[src]

The name of a type,eg:Foo for a Foo<u8>.

pub fn variant_names(&self) -> &'static str[src]

The names of the variants of the enum,separated by ';'.

impl EnumInfo[src]

pub fn variant_names_iter(
    &self
) -> impl Iterator<Item = &'static str> + 'static + Debug + Clone
[src]

Gets an iterator over the names of the variants of the enum.

Trait Implementations

impl Debug for EnumInfo[src]

impl GetStaticEquivalent_ for EnumInfo[src]

type StaticEquivalent = _static_EnumInfo

impl StableAbi for EnumInfo[src]

type IsNonZeroType = False

Whether this type has a single invalid bit-pattern. Read more

Auto Trait Implementations

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> GetWithMetadata for T[src]

type ForSelf = WithMetadata_<T, T>

This is always WithMetadata_<Self, Self>

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

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

impl<This> TransmuteElement for This where
    This: ?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, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The error type returned when the conversion fails.

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

type Type = T

The same type as Self. Read more