pub struct ConversionSpecifier {
pub argument_index: usize,
pub alt_form: bool,
pub zero_pad: bool,
pub left_adj: bool,
pub space_sign: bool,
pub force_sign: bool,
pub grouping_separator: bool,
pub negative_in_parentheses: bool,
pub width: NumericParam,
pub precision: NumericParam,
pub conversion_type: ConversionType,
}Expand description
Parsed printf conversion specifier
Fields§
§argument_index: usize§alt_form: boolflag #: use 0x, etc?
zero_pad: boolflag 0: left-pad with zeros?
left_adj: boolflag -: left-adjust (pad with spaces on the right)
space_sign: boolflag ' ' (space): indicate sign with a space?
force_sign: boolflag +: Always show sign? (for signed numbers)
grouping_separator: boolflag ,: include locale-specific grouping separators
negative_in_parentheses: boolflag (: enclose negative numbers in parentheses
width: NumericParamfield width
precision: NumericParamfloating point field precision
conversion_type: ConversionTypedata type
Implementations§
Trait Implementations§
Source§impl Clone for ConversionSpecifier
impl Clone for ConversionSpecifier
Source§fn clone(&self) -> ConversionSpecifier
fn clone(&self) -> ConversionSpecifier
Returns a duplicate 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 ConversionSpecifier
impl Debug for ConversionSpecifier
Source§impl PartialEq for ConversionSpecifier
impl PartialEq for ConversionSpecifier
impl Copy for ConversionSpecifier
impl Eq for ConversionSpecifier
impl StructuralPartialEq for ConversionSpecifier
Auto Trait Implementations§
impl Freeze for ConversionSpecifier
impl RefUnwindSafe for ConversionSpecifier
impl Send for ConversionSpecifier
impl Sync for ConversionSpecifier
impl Unpin for ConversionSpecifier
impl UnwindSafe for ConversionSpecifier
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more