pub struct FormatSpec {
pub fill: Option<char>,
pub align: Option<Align>,
pub zero: bool,
pub width: Option<u32>,
pub precision: Option<u32>,
pub span: Span,
}Expand description
A format specification [[fill] align] ["0"] [width] ["." precision] after the : of an
interpolation (spec chapter 1, section 5.3a).
Fields§
§fill: Option<char>The fill character, if one is written.
align: Option<Align>The alignment, if one is written.
zero: bool0: pad a number with zeros after its sign.
width: Option<u32>The width, at most 1000.
precision: Option<u32>The precision, at most 100.
span: SpanWhere the specification is, after the :.
Trait Implementations§
Source§impl Clone for FormatSpec
impl Clone for FormatSpec
Source§impl Debug for FormatSpec
impl Debug for FormatSpec
impl Eq for FormatSpec
Source§impl PartialEq for FormatSpec
impl PartialEq for FormatSpec
impl StructuralPartialEq for FormatSpec
Auto Trait Implementations§
impl Freeze for FormatSpec
impl RefUnwindSafe for FormatSpec
impl Send for FormatSpec
impl Sync for FormatSpec
impl Unpin for FormatSpec
impl UnsafeUnpin for FormatSpec
impl UnwindSafe for FormatSpec
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