Enum EnumVariantCustomBehavior

pub enum EnumVariantCustomBehavior

An enum representing custom handling that can be given to a variant.

Variants

ModuleConstify

This variant will be a module containing constants.

Constify

This variant will be constified, that is, forced to generate a constant.

Hide

This variant will be hidden entirely from the resulting enum.

Trait Implementations

impl Clone for EnumVariantCustomBehavior

fn clone(&self) -> EnumVariantCustomBehavior

impl Copy for EnumVariantCustomBehavior

impl Debug for EnumVariantCustomBehavior

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for EnumVariantCustomBehavior

impl PartialEq for EnumVariantCustomBehavior

fn eq(&self, other: &EnumVariantCustomBehavior) -> bool

impl StructuralPartialEq for EnumVariantCustomBehavior

Auto Trait Implementations

impl Freeze for EnumVariantCustomBehavior

impl RefUnwindSafe for EnumVariantCustomBehavior

impl Send for EnumVariantCustomBehavior

impl Sync for EnumVariantCustomBehavior

impl Unpin for EnumVariantCustomBehavior

impl UnsafeUnpin for EnumVariantCustomBehavior

impl UnwindSafe for EnumVariantCustomBehavior

Blanket Implementations

impl<T> Any for EnumVariantCustomBehavior where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for EnumVariantCustomBehavior where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for EnumVariantCustomBehavior where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for EnumVariantCustomBehavior where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for EnumVariantCustomBehavior

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for EnumVariantCustomBehavior

impl<T> ToOwned for EnumVariantCustomBehavior where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for EnumVariantCustomBehavior where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for EnumVariantCustomBehavior where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for EnumVariantCustomBehavior where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>