pub enum FormatPrecision {
RoundHalfToEven,
Truncate,
}Expand description
Subsecond rounding policy used by the formatter.
Variants§
RoundHalfToEven
Round half-to-even at the requested subsecond digit (default).
Truncate
Truncate toward zero at the requested subsecond digit.
Trait Implementations§
Source§impl Clone for FormatPrecision
impl Clone for FormatPrecision
Source§fn clone(&self) -> FormatPrecision
fn clone(&self) -> FormatPrecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FormatPrecision
Source§impl Debug for FormatPrecision
impl Debug for FormatPrecision
impl Eq for FormatPrecision
Source§impl PartialEq for FormatPrecision
impl PartialEq for FormatPrecision
Source§fn eq(&self, other: &FormatPrecision) -> bool
fn eq(&self, other: &FormatPrecision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FormatPrecision
Auto Trait Implementations§
impl Freeze for FormatPrecision
impl RefUnwindSafe for FormatPrecision
impl Send for FormatPrecision
impl Sync for FormatPrecision
impl Unpin for FormatPrecision
impl UnsafeUnpin for FormatPrecision
impl UnwindSafe for FormatPrecision
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