Struct syntax::ext::base::DummyResult
[−]
[src]
pub struct DummyResult { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Fill-in macro expansion result, to allow compilation to continue after hitting errors.
Methods
impl DummyResult
[src]
impl DummyResult
ⓘImportant traits for Box<R>pub fn any(sp: Span) -> Box<MacResult + 'static>
[src]
pub fn any(sp: Span) -> Box<MacResult + 'static>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Create a default MacResult that can be anything.
Use this as a return value after hitting any errors and
calling span_err
.
ⓘImportant traits for Box<R>pub fn expr(sp: Span) -> Box<MacResult + 'static>
[src]
pub fn expr(sp: Span) -> Box<MacResult + 'static>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Create a default MacResult that can only be an expression.
Use this for macros that must expand to an expression, so even if an error is encountered internally, the user will receive an error that they also used it in the wrong place.
pub fn raw_expr(sp: Span) -> P<Expr>
[src]
pub fn raw_expr(sp: Span) -> P<Expr>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
A plain dummy expression.
pub fn raw_pat(sp: Span) -> Pat
[src]
pub fn raw_pat(sp: Span) -> Pat
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
A plain dummy pattern.
pub fn raw_ty(sp: Span) -> P<Ty>
[src]
pub fn raw_ty(sp: Span) -> P<Ty>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Trait Implementations
impl Copy for DummyResult
[src]
impl Copy for DummyResult
impl Clone for DummyResult
[src]
impl Clone for DummyResult
fn clone(&self) -> DummyResult
[src]
fn clone(&self) -> DummyResult
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl MacResult for DummyResult
[src]
impl MacResult for DummyResult
fn make_expr(self: Box<DummyResult>) -> Option<P<Expr>>
[src]
fn make_expr(self: Box<DummyResult>) -> Option<P<Expr>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Create an expression.
fn make_pat(self: Box<DummyResult>) -> Option<P<Pat>>
[src]
fn make_pat(self: Box<DummyResult>) -> Option<P<Pat>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Create a pattern.
fn make_items(self: Box<DummyResult>) -> Option<SmallVector<P<Item>>>
[src]
fn make_items(self: Box<DummyResult>) -> Option<SmallVector<P<Item>>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Create zero or more items.
fn make_impl_items(self: Box<DummyResult>) -> Option<SmallVector<ImplItem>>
[src]
fn make_impl_items(self: Box<DummyResult>) -> Option<SmallVector<ImplItem>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Create zero or more impl items.
fn make_trait_items(self: Box<DummyResult>) -> Option<SmallVector<TraitItem>>
[src]
fn make_trait_items(self: Box<DummyResult>) -> Option<SmallVector<TraitItem>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Create zero or more trait items.
fn make_stmts(self: Box<DummyResult>) -> Option<SmallVector<Stmt>>
[src]
fn make_stmts(self: Box<DummyResult>) -> Option<SmallVector<Stmt>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Create zero or more statements. Read more
fn make_ty(self: Box<DummyResult>) -> Option<P<Ty>>
[src]
fn make_ty(self: Box<DummyResult>) -> Option<P<Ty>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Auto Trait Implementations
impl !Send for DummyResult
impl !Send for DummyResult
impl !Sync for DummyResult
impl !Sync for DummyResult