#[non_exhaustive]pub enum Format {
Plain,
Comma3Dot,
}Expand description
Decimal formatting type for pretty-printing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Plain
Decimal without no formatting, such as
1234 or 1234.5.
Comma3Dot
Use , on every thousands, . for the decimal point.
Trait Implementations§
Source§impl IntoBoundedStatic for Format
impl IntoBoundedStatic for Format
Source§impl ToBoundedStatic for Format
impl ToBoundedStatic for Format
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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