[][src]Struct rustc_ap_syntax::ast::TraitItem

pub struct TraitItem {
    pub id: NodeId,
    pub ident: Ident,
    pub attrs: Vec<Attribute>,
    pub generics: Generics,
    pub kind: TraitItemKind,
    pub span: Span,
    pub tokens: Option<TokenStream>,
}

Represents an item declaration within a trait declaration, possibly including a default implementation. A trait item is either required (meaning it doesn't have an implementation, just a signature) or provided (meaning it has a default implementation).

Fields

id: NodeIdident: Identattrs: Vec<Attribute>generics: Genericskind: TraitItemKindspan: Spantokens: Option<TokenStream>

See Item::tokens for what this is.

Trait Implementations

impl HasAttrs for TraitItem[src]

impl Clone for TraitItem[src]

impl Debug for TraitItem[src]

impl Encodable for TraitItem[src]

impl Decodable for TraitItem[src]

Auto Trait Implementations

impl !Send for TraitItem

impl !Sync for TraitItem

impl Unpin for TraitItem

impl !UnwindSafe for TraitItem

impl !RefUnwindSafe for TraitItem

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> Encodable for T where
    T: UseSpecializedEncodable + ?Sized
[src]

impl<T> Decodable for T where
    T: UseSpecializedDecodable
[src]

impl<E> SpecializationError for E[src]