[−][src]Struct syntax::ext::base::MacEager
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]
impl MacEager
pub fn expr(v: P<Expr>) -> Box<dyn MacResult> | [src] |
pub fn pat(v: P<Pat>) -> Box<dyn MacResult> | [src] |
pub fn items(v: SmallVec<[P<Item>; 1]>) -> Box<dyn MacResult> | [src] |
pub fn impl_items(v: SmallVec<[ImplItem; 1]>) -> Box<dyn MacResult> | [src] |
pub fn trait_items(v: SmallVec<[TraitItem; 1]>) -> Box<dyn MacResult> | [src] |
pub fn foreign_items(v: SmallVec<[ForeignItem; 1]>) -> Box<dyn MacResult> | [src] |
pub fn stmts(v: SmallVec<[Stmt; 1]>) -> Box<dyn MacResult> | [src] |
pub fn ty(v: P<Ty>) -> Box<dyn MacResult> | [src] |
Trait Implementations
impl MacResult for MacEager
[src]
impl MacResult for MacEager
fn make_expr(self: Box<Self>) -> Option<P<Expr>> | [src] |
fn make_items(self: Box<Self>) -> Option<SmallVec<[P<Item>; 1]>> | [src] |
fn make_impl_items(self: Box<Self>) -> Option<SmallVec<[ImplItem; 1]>> | [src] |
fn make_trait_items(self: Box<Self>) -> Option<SmallVec<[TraitItem; 1]>> | [src] |
fn make_foreign_items(self: Box<Self>) -> Option<SmallVec<[ForeignItem; 1]>> | [src] |
fn make_stmts(self: Box<Self>) -> Option<SmallVec<[Stmt; 1]>> | [src] |
fn make_pat(self: Box<Self>) -> Option<P<Pat>> | [src] |
fn make_ty(self: Box<Self>) -> Option<P<Ty>> | [src] |
impl Default for MacEager
[src]
impl Default for MacEager
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<E> SpecializationError for E
[src]
impl<E> SpecializationError for E
impl<T> Erased for T
[src]
impl<T> Erased for T
impl<T> Send for T where
T: ?Sized,
[src]
impl<T> Send for T where
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
impl<T> Sync for T where
T: ?Sized,
impl<T> Erased for T
impl<T> Erased for T