Struct derive_utils::EnumImpl

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

Implementations§

👎Deprecated: Use push_method instead
👎Deprecated: Use push_method instead

Appends a method from TraitItemMethod.

A method that has the first argument other than the following is error:

  • &self
  • &mut self
  • self
  • mut self
  • self: Pin<&Self>
  • self: Pin<&mut Self>

Appends items from ItemTrait.

TraitItem::Method that has the first argument other than the following is error:

  • &self
  • &mut self
  • self
  • mut self
  • self: Pin<&Self>
  • self: Pin<&mut Self>

The following items are ignored:

  • Generic associated types (GAT) (TraitItem::Method that has generics)
  • TraitItem::Const
  • TraitItem::Macro
  • TraitItem::Verbatim

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.