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> Freeze for FormatAndArgsFlavor<T>
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