pub enum EnumVariantCustomBehavior {
ModuleConstify,
Constify,
Hide,
}
Expand description
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§
source§impl Clone for EnumVariantCustomBehavior
impl Clone for EnumVariantCustomBehavior
source§fn clone(&self) -> EnumVariantCustomBehavior
fn clone(&self) -> EnumVariantCustomBehavior
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EnumVariantCustomBehavior
impl Debug for EnumVariantCustomBehavior
source§impl PartialEq<EnumVariantCustomBehavior> for EnumVariantCustomBehavior
impl PartialEq<EnumVariantCustomBehavior> for EnumVariantCustomBehavior
source§fn eq(&self, other: &EnumVariantCustomBehavior) -> bool
fn eq(&self, other: &EnumVariantCustomBehavior) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EnumVariantCustomBehavior
impl Eq for EnumVariantCustomBehavior
impl StructuralEq for EnumVariantCustomBehavior
impl StructuralPartialEq for EnumVariantCustomBehavior
Auto Trait Implementations§
impl RefUnwindSafe for EnumVariantCustomBehavior
impl Send for EnumVariantCustomBehavior
impl Sync for EnumVariantCustomBehavior
impl Unpin for EnumVariantCustomBehavior
impl UnwindSafe for EnumVariantCustomBehavior
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more