Struct rune::MacroContext [−][src]
pub struct MacroContext { /* fields omitted */ }
Expand description
Context for a running macro.
Implementations
pub fn resolve_owned<T>(&self, item: T) -> Result<T::Owned, ResolveError> where
T: ResolveOwned,
pub fn resolve_owned<T>(&self, item: T) -> Result<T::Owned, ResolveError> where
T: ResolveOwned,
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.