Enum time::format_description::well_known::iso8601::TimePrecision
source · [−]pub enum TimePrecision {
Hour {
decimal_digits: Option<NonZeroU8>,
},
Minute {
decimal_digits: Option<NonZeroU8>,
},
Second {
decimal_digits: Option<NonZeroU8>,
},
}
Expand description
The precision and number of decimal digits present for the time.
Variants
Hour
Format the hour only. Minutes, seconds, and nanoseconds will be represented with the specified number of decimal digits, if any.
Minute
Format the hour and minute. Seconds and nanoseconds will be represented with the specified number of decimal digits, if any.
Second
Format the hour, minute, and second. Nanoseconds will be represented with the specified number of decimal digits, if any.
Trait Implementations
sourceimpl Clone for TimePrecision
impl Clone for TimePrecision
sourcefn clone(&self) -> TimePrecision
fn clone(&self) -> TimePrecision
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TimePrecision
impl Debug for TimePrecision
sourceimpl PartialEq<TimePrecision> for TimePrecision
impl PartialEq<TimePrecision> for TimePrecision
sourcefn eq(&self, other: &TimePrecision) -> bool
fn eq(&self, other: &TimePrecision) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TimePrecision) -> bool
fn ne(&self, other: &TimePrecision) -> bool
This method tests for !=
.
impl Copy for TimePrecision
impl Eq for TimePrecision
impl StructuralEq for TimePrecision
impl StructuralPartialEq for TimePrecision
Auto Trait Implementations
impl RefUnwindSafe for TimePrecision
impl Send for TimePrecision
impl Sync for TimePrecision
impl Unpin for TimePrecision
impl UnwindSafe for TimePrecision
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more