pub enum DatetimeKind {
OffsetDatetime,
LocalDatetime,
LocalDate,
LocalTime,
}Expand description
Which of TOML’s four date-time types a Datetime holds.
Variants§
OffsetDatetime
A date, a time and an offset: 1979-05-27T07:32:00Z.
LocalDatetime
A date and a time, with no offset: 1979-05-27T07:32:00.
LocalDate
A date on its own: 1979-05-27.
LocalTime
A time on its own: 07:32:00.
Trait Implementations§
Source§impl Clone for DatetimeKind
impl Clone for DatetimeKind
Source§fn clone(&self) -> DatetimeKind
fn clone(&self) -> DatetimeKind
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 DatetimeKind
Source§impl Debug for DatetimeKind
impl Debug for DatetimeKind
impl Eq for DatetimeKind
Source§impl Hash for DatetimeKind
impl Hash for DatetimeKind
Source§impl Ord for DatetimeKind
impl Ord for DatetimeKind
Source§fn cmp(&self, other: &DatetimeKind) -> Ordering
fn cmp(&self, other: &DatetimeKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DatetimeKind
impl PartialEq for DatetimeKind
Source§impl PartialOrd for DatetimeKind
impl PartialOrd for DatetimeKind
impl StructuralPartialEq for DatetimeKind
Auto Trait Implementations§
impl Freeze for DatetimeKind
impl RefUnwindSafe for DatetimeKind
impl Send for DatetimeKind
impl Sync for DatetimeKind
impl Unpin for DatetimeKind
impl UnsafeUnpin for DatetimeKind
impl UnwindSafe for DatetimeKind
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