pub struct Fmt {
pub form: Form,
pub sep: char,
pub sub_sep: char,
pub precision: Precision,
pub pad: bool,
pub locale: LocaleId,
}Expand description
Formatting context (§13).
Fields§
§form: FormWhich form to render.
sep: charGroup separator. Must not be a decimal or base-5 digit (§6.3).
sub_sep: charSub-beat introducer.
precision: PrecisionThe tier to render down to. This is the stated precision.
pad: boolPad the high end to a fixed tier width, which is the only condition under which text sorts chronologically (Rule S).
locale: LocaleIdLocale for the named form.
Implementations§
Source§impl Fmt
impl Fmt
Sourcepub fn human_at(tier: Tier) -> Fmt
pub fn human_at(tier: Tier) -> Fmt
Human form truncated to a tier. The result denotes a window (Rule T).
Trait Implementations§
impl Copy for Fmt
impl Eq for Fmt
impl StructuralPartialEq for Fmt
Auto Trait Implementations§
impl Freeze for Fmt
impl RefUnwindSafe for Fmt
impl Send for Fmt
impl Sync for Fmt
impl Unpin for Fmt
impl UnsafeUnpin for Fmt
impl UnwindSafe for Fmt
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