Struct syntax::ext::base::DummyResult[][src]

pub struct DummyResult { /* fields omitted */ }

Fill-in macro expansion result, to allow compilation to continue after hitting errors.

Methods

impl DummyResult
[src]

Important traits for Box<R>

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>

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.

A plain dummy expression.

A plain dummy pattern.

Trait Implementations

impl Copy for DummyResult
[src]

impl Clone for DummyResult
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl MacResult for DummyResult
[src]

Create an expression.

Create a pattern.

Create zero or more items.

Create zero or more impl items.

Create zero or more trait items.

Create zero or more items in an extern {} block

Create zero or more statements. Read more

Auto Trait Implementations

impl !Send for DummyResult

impl !Sync for DummyResult