#[non_exhaustive]pub enum RoundingPriority {
Auto,
MorePrecision,
LessPrecision,
}Expand description
roundingPriority.
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.
Auto
auto (the default): significant digits when set, else fraction digits.
MorePrecision
morePrecision: of the two roundings, the one keeping more digits.
LessPrecision
lessPrecision: the one keeping fewer.
Trait Implementations§
Source§impl Clone for RoundingPriority
impl Clone for RoundingPriority
impl Copy for RoundingPriority
Source§impl Debug for RoundingPriority
impl Debug for RoundingPriority
impl Eq for RoundingPriority
Source§impl Hash for RoundingPriority
impl Hash for RoundingPriority
Source§impl PartialEq for RoundingPriority
impl PartialEq for RoundingPriority
impl StructuralPartialEq for RoundingPriority
Auto Trait Implementations§
impl Freeze for RoundingPriority
impl RefUnwindSafe for RoundingPriority
impl Send for RoundingPriority
impl Sync for RoundingPriority
impl Unpin for RoundingPriority
impl UnsafeUnpin for RoundingPriority
impl UnwindSafe for RoundingPriority
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