Struct syn::ItemImpl[][src]

pub struct ItemImpl {
    pub attrs: Vec<Attribute>,
    pub defaultness: Option<Default>,
    pub unsafety: Option<Unsafe>,
    pub impl_token: Impl,
    pub generics: Generics,
    pub trait_: Option<(Option<Bang>, Path, For)>,
    pub self_ty: Box<Type>,
    pub brace_token: Brace,
    pub items: Vec<ImplItem>,
}
[]

An impl block providing trait or associated items: impl<A> Trait for Data<A> { ... }.

This type is available if Syn is built with the "full" feature.

Fields

[]

Trait this impl implements.

[]

The Self type of the impl.

Trait Implementations

impl Synom for ItemImpl
[src]
[+]

[]

A short name of the type being parsed. Read more

impl ToTokens for ItemImpl
[src]
[+]

[]

Write self to the given Tokens. Read more

[]

Convert self directly into a Tokens object. Read more

impl Clone for ItemImpl
[src]
[+]

[]

Returns a copy of the value. Read more

[]

Performs copy-assignment from source. Read more

impl From<ItemImpl> for Item
[src]
[+]

[]

Performs the conversion.

Auto Trait Implementations

impl !Send for ItemImpl

impl !Sync for ItemImpl