pub enum FormatElement<'a> {
Verbatim(&'a str),
Format(ConversionSpecifier),
}
Expand description
A part of a format string: either a string of characters to be included verbatim, or a format specifier that should be replaced based on an argument to the vsprintf call.
Variants§
Verbatim(&'a str)
Some characters that are copied to the output as-is
Format(ConversionSpecifier)
A format specifier
Trait Implementations§
Source§impl<'a> Clone for FormatElement<'a>
impl<'a> Clone for FormatElement<'a>
Source§fn clone(&self) -> FormatElement<'a>
fn clone(&self) -> FormatElement<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for FormatElement<'a>
impl<'a> Debug for FormatElement<'a>
Source§impl<'a> PartialEq for FormatElement<'a>
impl<'a> PartialEq for FormatElement<'a>
impl<'a> Eq for FormatElement<'a>
impl<'a> StructuralPartialEq for FormatElement<'a>
Auto Trait Implementations§
impl<'a> Freeze for FormatElement<'a>
impl<'a> RefUnwindSafe for FormatElement<'a>
impl<'a> Send for FormatElement<'a>
impl<'a> Sync for FormatElement<'a>
impl<'a> Unpin for FormatElement<'a>
impl<'a> UnwindSafe for FormatElement<'a>
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