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: ArgumentConversionSpec’s argument.
fill: charConversionSpec’s fill character.
alignment: AlignmentConversionSpec’s field alignment.
flags: HashSet<Flag>ConversionSpec’s set of Flags.
min_field_width: MinFieldWidthConversionSpec’s minimum field width argument.
precision: PrecisionConversionSpec’s Precision argument.
length: Option<Length>ConversionSpec’s Length argument.
primitive: PrimitiveConversionSpec’s Primitive.
style: StyleConversionSpec’s Style.
Implementations§
Source§impl ConversionSpec
impl ConversionSpec
Sourcepub const fn has_valid_field_lengths(&self) -> bool
pub const fn has_valid_field_lengths(&self) -> bool
Returns true if fixed width and precision do not exceed
MAX_FIELD_LEN.
Trait Implementations§
Source§impl Clone for ConversionSpec
impl Clone for ConversionSpec
Source§impl Debug for ConversionSpec
impl Debug for ConversionSpec
Source§impl Default for ConversionSpec
impl Default for ConversionSpec
impl Eq for ConversionSpec
Source§impl PartialEq for ConversionSpec
impl PartialEq for ConversionSpec
impl StructuralPartialEq for ConversionSpec
Auto Trait Implementations§
impl Forget for ConversionSpec
impl Freeze for ConversionSpec
impl Move for ConversionSpec
impl RefUnwindSafe for ConversionSpec
impl Send for ConversionSpec
impl Sync for ConversionSpec
impl Unpin for ConversionSpec
impl UnsafeUnpin 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