pub struct Options<'a> {
pub precision: Option<u32>,
pub abbreviations: Option<[&'a str; 7]>,
pub rounding_strategy: Option<RoundingStrategy>,
}Expand description
The options for abbreviating a number.
Fields§
§precision: Option<u32>The precision of the result. 1 by default.
abbreviations: Option<[&'a str; 7]>A list of custom abbreviation units. ABBREVIATIONS is used by default.
rounding_strategy: Option<RoundingStrategy>The RoundingStrategy to use on the result. RoundingStrategy::MidpointNearestEven is used by default.
Trait Implementations§
impl<'a> Copy for Options<'a>
Auto Trait Implementations§
impl<'a> Freeze for Options<'a>
impl<'a> RefUnwindSafe for Options<'a>
impl<'a> Send for Options<'a>
impl<'a> Sync for Options<'a>
impl<'a> Unpin for Options<'a>
impl<'a> UnwindSafe for Options<'a>
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