pub struct FormatArgs { /* private fields */ }
Expand description
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§
Source§impl FormatArgs
impl FormatArgs
Sourcepub fn expand(&self, cx: &mut MacroContext<'_, '_, '_>) -> Result<Quote<'_>>
pub fn expand(&self, cx: &mut MacroContext<'_, '_, '_>) -> Result<Quote<'_>>
Expand the format specification.
Trait Implementations§
Source§impl Parse for FormatArgs
impl Parse for FormatArgs
Auto Trait Implementations§
impl Freeze for FormatArgs
impl RefUnwindSafe for FormatArgs
impl Send for FormatArgs
impl Sync for FormatArgs
impl Unpin for FormatArgs
impl UnwindSafe for FormatArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more