Enum EnumVariation
pub enum EnumVariation
A helper type that represents different enum variations.
Variants
-
Rust { non_exhaustive: bool } The code for this enum will use a Rust enum. Note that creating this in unsafe code (including FFI) with an invalid value will invoke undefined behaviour, whether or not its marked as
#[non_exhaustive].-
NewType { is_bitfield: bool, is_global: bool } The code for this enum will use a newtype
-
Consts The code for this enum will use consts
-
ModuleConsts The code for this enum will use a module containing consts
Trait Implementations
impl Clone for EnumVariation
fn clone(&self) -> EnumVariation
impl Copy for EnumVariation
impl Debug for EnumVariation
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for EnumVariation
fn default() -> EnumVariation
impl Display for EnumVariation
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for EnumVariation
impl FromStr for EnumVariation
type Err = Error;fn from_str(s: &str) -> Result<Self, Self::Err>Create a
EnumVariationfrom a string.
impl PartialEq for EnumVariation
fn eq(&self, other: &EnumVariation) -> bool
impl StructuralPartialEq for EnumVariation
Auto Trait Implementations
impl Freeze for EnumVariation
impl RefUnwindSafe for EnumVariation
impl Send for EnumVariation
impl Sync for EnumVariation
impl Unpin for EnumVariation
impl UnsafeUnpin for EnumVariation
impl UnwindSafe for EnumVariation
Blanket Implementations
impl<T> Any for EnumVariation
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for EnumVariation
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for EnumVariation
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for EnumVariation
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for EnumVariation
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for EnumVariation
impl<T> ToOwned for EnumVariation
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for EnumVariation
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for EnumVariation
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for EnumVariation
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for EnumVariation
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>