Struct koto_parser::StringFormatOptions
source · pub struct StringFormatOptions {
pub alignment: StringAlignment,
pub min_width: Option<u32>,
pub precision: Option<u32>,
pub fill_character: Option<ConstantIndex>,
}
Expand description
The formatting options that are available for interpolated strings
Fields§
§alignment: StringAlignment
The 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
Trait Implementations§
source§impl Clone for StringFormatOptions
impl Clone for StringFormatOptions
source§fn clone(&self) -> StringFormatOptions
fn clone(&self) -> StringFormatOptions
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 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
source§fn eq(&self, other: &StringFormatOptions) -> bool
fn eq(&self, other: &StringFormatOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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