pub enum DateFields {
Year,
YearMonth,
Month,
MonthDay,
YearMonthDay,
HourMinute,
HourMinuteSecond,
}Expand description
Which parts of an instant to write. The locale decides their order, words and punctuation.
Variants§
Year
2026.
YearMonth
Mar 2026 · mars 2026 · 03/2026 · 2026/03.
Month
Mar · mars · Mär · 3月: a month on its own, for a column of months (a calendar heat
map’s header) whose years are elsewhere.
MonthDay
Mar 5 · 5 mars · 05.03. · 03/05.
YearMonthDay
Mar 5, 2026 · 5 mars 2026 · 05.03.2026 · 2026/03/05.
HourMinute
3:30 PM · 15:30: the clock in the locale’s own hour cycle.
HourMinuteSecond
3:30:15 PM · 15:30:15.
Trait Implementations§
Source§impl Clone for DateFields
impl Clone for DateFields
impl Copy for DateFields
Source§impl Debug for DateFields
impl Debug for DateFields
impl Eq for DateFields
Source§impl Hash for DateFields
impl Hash for DateFields
Source§impl PartialEq for DateFields
impl PartialEq for DateFields
impl StructuralPartialEq for DateFields
Auto Trait Implementations§
impl Freeze for DateFields
impl RefUnwindSafe for DateFields
impl Send for DateFields
impl Sync for DateFields
impl Unpin for DateFields
impl UnsafeUnpin for DateFields
impl UnwindSafe for DateFields
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more