pub struct TraitMethod {
    pub method_name: Ident,
    pub method_generics: Vec<GenericParam>,
    pub method_parameters: Vec<FnArg>,
    pub return_type: Option<Type>,
    pub build_pair: BuildPair,
}
Expand description

A method under a trait

Fields§

§method_name: Ident§method_generics: Vec<GenericParam>§method_parameters: Vec<FnArg>§return_type: Option<Type>§build_pair: BuildPair

Whether this method is in takes two of self, for use in comparison

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.