Struct syn_helpers::TraitMethod[][src]

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

A method under a trait

Fields

method_name: Identmethod_parameters: Vec<FnArg>method_generics: Vec<GenericParam>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

Performs the conversion.

Performs the conversion.

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.