Enum EnumVariation
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
Implementations
impl Clone for EnumVariation
fn clone(self: &Self) -> EnumVariation
impl Copy for EnumVariation
impl Debug for EnumVariation
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Default for EnumVariation
fn default() -> EnumVariation
impl Display for EnumVariation
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Eq for EnumVariation
impl Freeze for EnumVariation
impl FromStr for EnumVariation
fn from_str(s: &str) -> Result<Self, <Self as >::Err>Create a
EnumVariationfrom a string.
impl PartialEq for EnumVariation
fn eq(self: &Self, other: &EnumVariation) -> bool
impl RefUnwindSafe for EnumVariation
impl Send for EnumVariation
impl StructuralPartialEq for EnumVariation
impl Sync for EnumVariation
impl Unpin for EnumVariation
impl UnwindSafe for EnumVariation
impl<T> Any for EnumVariation
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for EnumVariation
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for EnumVariation
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for EnumVariation
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for EnumVariation
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for EnumVariation
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> ToString for EnumVariation
fn to_string(self: &Self) -> String
impl<T, U> Into for EnumVariation
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for EnumVariation
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for EnumVariation
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>