Struct pw_format::macros::FormatAndArgs
source · pub struct FormatAndArgs { /* private fields */ }
Expand description
A parsed format string and it’s arguments.
To parse a FormatAndArgs
, use the FormatAndArgsFlavor
variant which
is generic over FormatStringParser
to allow parsing either printf
or
core::fmt
style format strings.
Arguments are parsed according to the pattern:
($format_string:literal, $($args:expr),*)
To support uses where format strings need to be built by macros at compile
time, the format string can be specified as a set of string literals
separated by the custom PW_FMT_CONCAT
keyword.
Trait Implementations§
source§impl Debug for FormatAndArgs
impl Debug for FormatAndArgs
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.
Auto Trait Implementations§
impl RefUnwindSafe for FormatAndArgs
impl !Send for FormatAndArgs
impl !Sync for FormatAndArgs
impl Unpin for FormatAndArgs
impl UnwindSafe for FormatAndArgs
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