Enum pw_format::FormatFragment
source · pub enum FormatFragment {
Literal(String),
Conversion(ConversionSpec),
}
Expand description
A fragment of a printf format string.
Variants§
Literal(String)
A literal string value.
Conversion(ConversionSpec)
A conversion specification (i.e. %d).
Trait Implementations§
source§impl Clone for FormatFragment
impl Clone for FormatFragment
source§fn clone(&self) -> FormatFragment
fn clone(&self) -> FormatFragment
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 Debug for FormatFragment
impl Debug for FormatFragment
source§impl PartialEq for FormatFragment
impl PartialEq for FormatFragment
source§fn eq(&self, other: &FormatFragment) -> bool
fn eq(&self, other: &FormatFragment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FormatFragment
impl StructuralPartialEq for FormatFragment
Auto Trait Implementations§
impl RefUnwindSafe for FormatFragment
impl Send for FormatFragment
impl Sync for FormatFragment
impl Unpin for FormatFragment
impl UnwindSafe for FormatFragment
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