Struct rune::MacroContext[][src]

pub struct MacroContext { /* fields omitted */ }
Expand description

Context for a running macro.

Implementations

Construct an empty macro context. Should only be used for testing.

Resolve the given item into an owned variant.

Evaluate the given ast as a constant expression.

Stringify the given token stream.

Access span of the whole macro.

Access the span of the stream being parsed.

Access storage for the macro system.

Access the current source of the macro context.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.