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.


Trait this impl implements.

The Self type of the impl.

Trait Implementations

impl Synom for ItemImpl

A short name of the type being parsed. Read more

impl ToTokens for ItemImpl

Write self to the given TokenStream. Read more

Convert self directly into a TokenStream object. Read more

impl Debug for ItemImpl

Formats the value using the given formatter. Read more

impl Eq for ItemImpl

impl PartialEq for ItemImpl

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for ItemImpl

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for ItemImpl

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<ItemImpl> for Item

Performs the conversion.

Auto Trait Implementations

impl !Send for ItemImpl

impl !Sync for ItemImpl