Struct pw_format::ConversionSpec
source · pub struct ConversionSpec {
pub argument: Argument,
pub fill: char,
pub alignment: Alignment,
pub flags: HashSet<Flag>,
pub min_field_width: MinFieldWidth,
pub precision: Precision,
pub length: Option<Length>,
pub primitive: Primitive,
pub style: Style,
}
Expand description
A printf conversion specification aka a % clause.
Fields§
§argument: Argument
ConversionSpec’s argument.
fill: char
ConversionSpec’s fill character.
alignment: Alignment
ConversionSpec’s field alignment.
flags: HashSet<Flag>
ConversionSpec’s set of Flags.
min_field_width: MinFieldWidth
ConversionSpec’s minimum field width argument.
precision: Precision
ConversionSpec’s Precision argument.
length: Option<Length>
ConversionSpec’s Length argument.
primitive: Primitive
ConversionSpec’s Primitive.
style: Style
ConversionSpec’s Style.
Trait Implementations§
source§impl Clone for ConversionSpec
impl Clone for ConversionSpec
source§fn clone(&self) -> ConversionSpec
fn clone(&self) -> ConversionSpec
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 ConversionSpec
impl Debug for ConversionSpec
source§impl PartialEq for ConversionSpec
impl PartialEq for ConversionSpec
source§fn eq(&self, other: &ConversionSpec) -> bool
fn eq(&self, other: &ConversionSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&ConversionSpec> for FormatParams
impl TryFrom<&ConversionSpec> for FormatParams
impl Eq for ConversionSpec
impl StructuralPartialEq for ConversionSpec
Auto Trait Implementations§
impl RefUnwindSafe for ConversionSpec
impl Send for ConversionSpec
impl Sync for ConversionSpec
impl Unpin for ConversionSpec
impl UnwindSafe for ConversionSpec
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