pub struct ImplArgs {
    pub path_arguments: PathArguments,
    pub ignores: Vec<Member>,
    pub using: Option<Member>,
    pub clause: Option<WhereClause>,
}
Expand description

Arguments passed to ImplTrait implementation methods

Fields§

§path_arguments: PathArguments

Path arguments to trait

Example: if the target is Deref<Target = T>, this is <Target = T>. This is always empty unless ImplTrait::support_path_arguments returns true.

§ignores: Vec<Member>

Fields ignored in attribute

§using: Option<Member>

Field specified to ‘use’ in attribute

§clause: Option<WhereClause>

Where clause added to attribute

Implementations§

If true, this field is ignored

If true, this named field is ignored

If true, this unnamed field is ignored

Field to “use”, if any

Find field to “use”, if any

Call the given closure over all non-ignored fields

Call the given closure over all non-ignored fields

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.