Trait abi_stable::nonexhaustive_enum::NonExhaustiveSharedOps[][src]

pub trait NonExhaustiveSharedOps {
    type Discriminant: ValidDiscriminant;
    fn get_discriminant_(&self) -> Self::Discriminant;
fn enum_info_(&self) -> &'static EnumInfo; }
Expand description

Used to abstract over the reference-ness of NonExhaustive<> inside UnwrapEnumError.

Associated Types

The type of the discriminant of the wrapped enum.

Required methods

Gets the discriminant of the wrapped enum.

Gets miscelaneous information about the wrapped enum

Implementors