[−][src]Struct rustc_builtin_macros::deriving::generic::Substructure

pub struct Substructure<'a> {
    pub type_ident: Ident,
    pub method_ident: Ident,
    pub self_args: &'a [P<Expr>],
    pub nonself_args: &'a [P<Expr>],
    pub fields: &'a SubstructureFields<'a>,
}

All the data about the data structure/method being derived upon.

Fields

type_ident: Ident

ident of self

method_ident: Ident

ident of the method

self_args: &'a [P<Expr>]

dereferenced access to any Self_ or Ptr(Self_, _) arguments

nonself_args: &'a [P<Expr>]

verbatim access to any other arguments

fields: &'a SubstructureFields<'a>

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Substructure<'a>

impl<'a> !Send for Substructure<'a>

impl<'a> !Sync for Substructure<'a>

impl<'a> Unpin for Substructure<'a>

impl<'a> !UnwindSafe for Substructure<'a>

Blanket Implementations

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

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

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

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

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

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.