[][src]Struct abi_stable::nonexhaustive_enum::nonexhaustive::DiscrAndEnumInfo

pub struct DiscrAndEnumInfo<E> { /* fields omitted */ }

A struct storing the discriminant and EnumInfo of some enum.

Methods

impl<E> DiscrAndEnumInfo<E>[src]

pub fn new(discr: E, enum_info: &'static EnumInfo) -> Self[src]

Constructs this DiscrAndEnumInfo.

pub fn discr(&self) -> E where
    E: ValidDiscriminant
[src]

The value of a discriminant that wasn't valid in this context (it is of a variant declared in a newer version of a dynamic library),

pub fn enum_info(&self) -> &'static EnumInfo[src]

The EnumInfo of an enum.

Trait Implementations

impl<E> NonExhaustiveSharedOps for DiscrAndEnumInfo<E> where
    E: ValidDiscriminant
[src]

type Discriminant = E

Auto Trait Implementations

impl<E> Send for DiscrAndEnumInfo<E> where
    E: Send

impl<E> Sync for DiscrAndEnumInfo<E> where
    E: Sync

impl<E> Unpin for DiscrAndEnumInfo<E> where
    E: Unpin

impl<E> UnwindSafe for DiscrAndEnumInfo<E> where
    E: UnwindSafe

impl<E> RefUnwindSafe for DiscrAndEnumInfo<E> where
    E: RefUnwindSafe

Blanket Implementations

impl<This> TransmuteElement for This where
    This: ?Sized
[src]

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

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

type Type = T

The same type as Self. Read more

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

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.