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]

[src]

[src]

A short name of the type being parsed. Read more

impl ToTokens for ItemImpl
[src]

[src]

Write self to the given Tokens. Read more

[src]

Convert self directly into a Tokens object. Read more

impl Debug for ItemImpl
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for ItemImpl
[src]

impl PartialEq for ItemImpl
[src]

[src]

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

[src]

This method tests for !=.

impl Hash for ItemImpl
[src]

[src]

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

1.3.0
[src]

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

impl Clone for ItemImpl
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<ItemImpl> for Item
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for ItemImpl

impl !Sync for ItemImpl