[][src]Enum syntax::ext::expand::AstFragment

pub enum AstFragment {
    OptExpr(Option<P<Expr>>),
    Expr(P<Expr>),
    Pat(P<Pat>),
    Ty(P<Ty>),
    Stmts(SmallVec<[Stmt; 1]>),
    Items(SmallVec<[P<Item>; 1]>),
    TraitItems(SmallVec<[TraitItem; 1]>),
    ImplItems(SmallVec<[ImplItem; 1]>),
    ForeignItems(SmallVec<[ForeignItem; 1]>),
}

A fragment of AST that can be produced by a single macro expansion. Can also serve as an input and intermediate result for macro expansion operations.

Variants

Methods

impl AstFragment
[src]

Auto Trait Implementations

impl !Send for AstFragment

impl !Sync for AstFragment

Blanket Implementations

impl<T> From for T
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<E> SpecializationError for E
[src]

impl<T> Erased for T
[src]

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

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

impl<T> Erased for T