[−][src]Struct syntex_syntax2::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<SmallVector<P<Item>>>
impl_items: Option<SmallVector<ImplItem>>
trait_items: Option<SmallVector<TraitItem>>
stmts: Option<SmallVector<Stmt>>
ty: Option<P<Ty>>
Methods
impl MacEager
[src]
pub fn expr(v: P<Expr>) -> Box<dyn MacResult>
[src]
pub fn pat(v: P<Pat>) -> Box<dyn MacResult>
[src]
pub fn items(v: SmallVector<P<Item>>) -> Box<dyn MacResult>
[src]
pub fn impl_items(v: SmallVector<ImplItem>) -> Box<dyn MacResult>
[src]
pub fn trait_items(v: SmallVector<TraitItem>) -> Box<dyn MacResult>
[src]
pub fn stmts(v: SmallVector<Stmt>) -> Box<dyn MacResult>
[src]
pub fn ty(v: P<Ty>) -> Box<dyn MacResult>
[src]
Trait Implementations
impl MacResult for MacEager
[src]
fn make_expr(self: Box<Self>) -> Option<P<Expr>>
[src]
fn make_items(self: Box<Self>) -> Option<SmallVector<P<Item>>>
[src]
fn make_impl_items(self: Box<Self>) -> Option<SmallVector<ImplItem>>
[src]
fn make_trait_items(self: Box<Self>) -> Option<SmallVector<TraitItem>>
[src]
fn make_stmts(self: Box<Self>) -> Option<SmallVector<Stmt>>
[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]
Auto Trait Implementations
impl !Send for MacEager
impl Unpin for MacEager
impl !Sync for MacEager
impl !UnwindSafe for MacEager
impl !RefUnwindSafe for MacEager
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,