Struct derive_utils::EnumImpl

source ·
pub struct EnumImpl<'a> { /* private fields */ }

Implementations§

Append items from ItemTrait.

The following items are ignored:

  • Generic associated types (GAT) (TraitItem::Method that has generics)
  • TraitItem::Const
  • TraitItem::Macro
  • TraitItem::Verbatim
  • TraitItem::Method that has the first argument other than &self, &mut self, self or mut self.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.