Struct pw_format::macros::FormatAndArgsFlavor
source · pub struct FormatAndArgsFlavor<T: FormatStringParser> { /* private fields */ }
Expand description
A variant of FormatAndArgs
that is generic over format string flavor.
FormatAndArgsFlavor
implements syn::parse::Parse
for it’s specified
format string flavor. Instantiate FormatAndArgsFlavor
with either
PrintfFormatStringParser
or CoreFmtFormatStringParser
to specify
which format string flavor should be used.
FormatAndArgsFlavor
trivially converts into FormatAndArgs
with the
From
trait.
Trait Implementations§
source§impl<T: Debug + FormatStringParser> Debug for FormatAndArgsFlavor<T>
impl<T: Debug + FormatStringParser> Debug for FormatAndArgsFlavor<T>
source§impl<T: FormatStringParser> From<FormatAndArgsFlavor<T>> for FormatAndArgs
impl<T: FormatStringParser> From<FormatAndArgsFlavor<T>> for FormatAndArgs
source§fn from(val: FormatAndArgsFlavor<T>) -> Self
fn from(val: FormatAndArgsFlavor<T>) -> Self
Converts to this type from the input type.
source§impl<T: FormatStringParser> Parse for FormatAndArgsFlavor<T>
impl<T: FormatStringParser> Parse for FormatAndArgsFlavor<T>
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl<T> RefUnwindSafe for FormatAndArgsFlavor<T>where
T: RefUnwindSafe,
impl<T> !Send for FormatAndArgsFlavor<T>
impl<T> !Sync for FormatAndArgsFlavor<T>
impl<T> Unpin for FormatAndArgsFlavor<T>where
T: Unpin,
impl<T> UnwindSafe for FormatAndArgsFlavor<T>where
T: UnwindSafe,
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