#[repr(u32)]pub enum TimeFormat {
RelativeFriendly = 0,
Year = 1,
YearMonth = 2,
Date = 3,
HourMinute = 4,
HourMinuteSecond = 5,
ISODate = 7,
ISODateTime = 8,
ISODateTimeUTC = 9,
}
Expand description
All of these time formats are local, except ISODateTimeUTC.
Variants§
RelativeFriendly = 0
“Yesterday”, “A few seconds ago”, etc.
Year = 1
1999
YearMonth = 2
July 1999 (or local variants)
Date = 3
July 5, 1999 (or local variants)
HourMinute = 4
14:43 (or 2:43 PM, locale dependent)
HourMinuteSecond = 5
14:43:45 (or 2:43 PM, locale dependent)
ISODate = 7
Local timezone ISO 8601 date: 1996-12-19
ISODateTime = 8
Local timezone ISO 8601 date and time string: 1996-12-19T16:39:57-08:00
ISODateTimeUTC = 9
UTC timezone ISO 8601 date and time string: 1996-12-19T16:39:57Z
Trait Implementations§
Source§impl CheckedBitPattern for TimeFormat
impl CheckedBitPattern for TimeFormat
Source§type Bits = u32
type Bits = u32
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl Clone for TimeFormat
impl Clone for TimeFormat
Source§fn clone(&self) -> TimeFormat
fn clone(&self) -> TimeFormat
Returns a duplicate of the value. Read more
1.0.0 · 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 TimeFormat
impl Debug for TimeFormat
Source§impl From<TimeFormat> for u32
impl From<TimeFormat> for u32
Source§fn from(enum_value: TimeFormat) -> Self
fn from(enum_value: TimeFormat) -> Self
Converts to this type from the input type.
Source§impl Hash for TimeFormat
impl Hash for TimeFormat
Source§impl PartialEq for TimeFormat
impl PartialEq for TimeFormat
Source§impl TryFrom<u32> for TimeFormat
impl TryFrom<u32> for TimeFormat
Source§type Error = TryFromPrimitiveError<TimeFormat>
type Error = TryFromPrimitiveError<TimeFormat>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for TimeFormat
impl TryFromPrimitive for TimeFormat
impl Copy for TimeFormat
impl Eq for TimeFormat
impl NoUninit for TimeFormat
impl StructuralPartialEq for TimeFormat
Auto Trait Implementations§
impl Freeze for TimeFormat
impl RefUnwindSafe for TimeFormat
impl Send for TimeFormat
impl Sync for TimeFormat
impl Unpin for TimeFormat
impl UnwindSafe for TimeFormat
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