pub struct TimePrecision(/* private fields */);Expand description
How finely a time is written, as its count of fraction digits.
Implementations§
Source§impl TimePrecision
impl TimePrecision
Sourcepub const fn from_fraction_digits(count: u8) -> Option<Self>
pub const fn from_fraction_digits(count: u8) -> Option<Self>
The precision of a fraction with count digits, up to nine.
Sourcepub const fn fraction_digits(self) -> u8
pub const fn fraction_digits(self) -> u8
The number of fraction digits, such as 3 for MILLIS.
Trait Implementations§
Source§impl Clone for TimePrecision
impl Clone for TimePrecision
impl Copy for TimePrecision
Source§impl Debug for TimePrecision
impl Debug for TimePrecision
impl Eq for TimePrecision
Source§impl Hash for TimePrecision
impl Hash for TimePrecision
Source§impl PartialEq for TimePrecision
impl PartialEq for TimePrecision
impl StructuralPartialEq for TimePrecision
Auto Trait Implementations§
impl Forget for TimePrecision
impl Freeze for TimePrecision
impl Move for TimePrecision
impl RefUnwindSafe for TimePrecision
impl Send for TimePrecision
impl Sync for TimePrecision
impl Unpin for TimePrecision
impl UnsafeUnpin for TimePrecision
impl UnwindSafe for TimePrecision
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