Enum icu_datetime::fieldsets::builder::DateFields
source · #[non_exhaustive]pub enum DateFields {
D,
MD,
YMD,
DE,
MDE,
YMDE,
E,
M,
YM,
Y,
}
Expand description
An enumeration over all possible date and calendar period field sets without options.
This is a builder enum. See builder
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
D
The day of the month, as in “on the 1st”.
MD
The month and day of the month, as in “January 1st”.
YMD
The year, month, and day of the month, as in “January 1st, 2000”.
DE
The day of the month and day of the week, as in “Saturday 1st”.
MDE
The month, day of the month, and day of the week, as in “Saturday, January 1st”.
YMDE
The year, month, day of the month, and day of the week, as in “Saturday, January 1st, 2000”.
E
The day of the week alone, as in “Saturday”.
M
A standalone month, as in “January”.
YM
A month and year, as in “January 2000”.
Y
A year, as in “2000”.
Trait Implementations§
source§impl Clone for DateFields
impl Clone for DateFields
source§fn clone(&self) -> DateFields
fn clone(&self) -> DateFields
Returns a copy 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 DateFields
impl Debug for DateFields
source§impl PartialEq for DateFields
impl PartialEq for DateFields
impl Copy for DateFields
impl Eq 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 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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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