Struct rune::macros::FormatArgs[][src]

pub struct FormatArgs { /* fields omitted */ }

A format specification: A format string followed by arguments to be formatted in accordance with that string.

This type can only be parsed inside of a macro context since it performs constant evaluation.

Implementations

impl FormatArgs[src]

pub fn expand(&self) -> Result<Quote<'_>, SpannedError>[src]

Expand the format specification.

Panics

Panics if called outside of a macro context.

pub fn expand_with(&self, ctx: &MacroContext) -> Result<Quote<'_>, SpannedError>[src]

Expand the format specification.

Trait Implementations

impl Parse for FormatArgs[src]

fn parse(p: &mut Parser<'_>) -> Result<Self, ParseError>[src]

Parse format arguments inside of a macro.

impl Peek for FormatArgs[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.