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 moreSource§impl Debug for FormatPrecision
impl Debug 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 Copy for FormatPrecision
impl Eq for FormatPrecision
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.