[][src]Struct syntax::ext::base::MacEager

pub struct MacEager {
    pub expr: Option<P<Expr>>,
    pub pat: Option<P<Pat>>,
    pub items: Option<SmallVec<[P<Item>; 1]>>,
    pub impl_items: Option<SmallVec<[ImplItem; 1]>>,
    pub trait_items: Option<SmallVec<[TraitItem; 1]>>,
    pub foreign_items: Option<SmallVec<[ForeignItem; 1]>>,
    pub stmts: Option<SmallVec<[Stmt; 1]>>,
    pub ty: Option<P<Ty>>,
}

MacResult implementation for the common case where you've already built each form of AST that you might return.

Fields

expr: Option<P<Expr>>pat: Option<P<Pat>>items: Option<SmallVec<[P<Item>; 1]>>impl_items: Option<SmallVec<[ImplItem; 1]>>trait_items: Option<SmallVec<[TraitItem; 1]>>foreign_items: Option<SmallVec<[ForeignItem; 1]>>stmts: Option<SmallVec<[Stmt; 1]>>ty: Option<P<Ty>>

Methods

impl MacEager[src]

Trait Implementations

impl MacResult for MacEager[src]

impl Default for MacEager[src]

Auto Trait Implementations

impl !Send for MacEager

impl !Sync for MacEager

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<E> SpecializationError for E[src]

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

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

impl<T> Erased for T[src]