pub struct StringFormatOptions {
pub alignment: StringAlignment,
pub min_width: Option<u32>,
pub precision: Option<u32>,
pub fill_character: Option<ConstantIndex>,
pub representation: Option<StringFormatRepresentation>,
}Expand description
The formatting options that are available for interpolated strings
Fields§
§alignment: StringAlignmentThe alignment that padded strings should use
min_width: Option<u32>The minimum width that should be taken up by the string
precision: Option<u32>The number of decimal places to use when formatting floats
fill_character: Option<ConstantIndex>The character that padded strings should use to fill empty space
representation: Option<StringFormatRepresentation>An alternative representation that can be applied to the formatted string
Trait Implementations§
Source§impl Clone for StringFormatOptions
impl Clone for StringFormatOptions
Source§fn clone(&self) -> StringFormatOptions
fn clone(&self) -> StringFormatOptions
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 StringFormatOptions
impl Debug for StringFormatOptions
Source§impl Default for StringFormatOptions
impl Default for StringFormatOptions
Source§fn default() -> StringFormatOptions
fn default() -> StringFormatOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for StringFormatOptions
impl PartialEq for StringFormatOptions
impl Copy for StringFormatOptions
impl Eq for StringFormatOptions
impl StructuralPartialEq for StringFormatOptions
Auto Trait Implementations§
impl Freeze for StringFormatOptions
impl RefUnwindSafe for StringFormatOptions
impl Send for StringFormatOptions
impl Sync for StringFormatOptions
impl Unpin for StringFormatOptions
impl UnwindSafe for StringFormatOptions
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