Struct syn_helpers::Item

source ·
pub struct Item<'a> {
    pub structure: &'a mut Structure,
    pub self_type: TypeOfSelf,
}

Fields§

§structure: &'a mut Structure§self_type: TypeOfSelf

Implementations§

Evaluates every constructable form of item and asks to produce a vector of statements to operate on item

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.