[−][src]Struct rustc_ap_rustc_expand::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<[P<AssocItem>; 1]>>
trait_items: Option<SmallVec<[P<AssocItem>; 1]>>
foreign_items: Option<SmallVec<[P<ForeignItem>; 1]>>
stmts: Option<SmallVec<[Stmt; 1]>>
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: SmallVec<[P<Item>; 1]>) -> Box<dyn MacResult>
[src]
pub fn impl_items(v: SmallVec<[P<AssocItem>; 1]>) -> Box<dyn MacResult>
[src]
pub fn trait_items(v: SmallVec<[P<AssocItem>; 1]>) -> Box<dyn MacResult>
[src]
pub fn foreign_items(v: SmallVec<[P<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 Default for MacEager
[src]
impl MacResult for MacEager
[src]
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<[P<AssocItem>; 1]>>
[src]
fn make_trait_items(self: Box<Self>) -> Option<SmallVec<[P<AssocItem>; 1]>>
[src]
fn make_foreign_items(self: Box<Self>) -> Option<SmallVec<[P<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]
fn make_arms(self: Box<Self>) -> Option<SmallVec<[Arm; 1]>>
[src]
fn make_fields(self: Box<Self>) -> Option<SmallVec<[Field; 1]>>
[src]
fn make_field_patterns(self: Box<Self>) -> Option<SmallVec<[FieldPat; 1]>>
[src]
fn make_generic_params(self: Box<Self>) -> Option<SmallVec<[GenericParam; 1]>>
[src]
fn make_params(self: Box<Self>) -> Option<SmallVec<[Param; 1]>>
[src]
fn make_struct_fields(self: Box<Self>) -> Option<SmallVec<[StructField; 1]>>
[src]
fn make_variants(self: Box<Self>) -> Option<SmallVec<[Variant; 1]>>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for MacEager
impl !Send for MacEager
impl !Sync for MacEager
impl Unpin for MacEager
impl !UnwindSafe for MacEager
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MaybeResult<T> for T
[src]
type Error = !
fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T
[src]
fn to_result(self) -> Result<T, <T as MaybeResult<T>>::Error>
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<E> SpecializationError for E
[src]
default fn not_found<S, T>(
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
[src]
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
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>,