Struct icu_datetime::fields::Field
source · pub struct Field {
pub symbol: FieldSymbol,
pub length: FieldLength,
}
Expand description
A field within a date pattern string, also referred to as a date field. A date field is the repetition of a specific pattern character one or more times within the pattern string. The pattern character is known as the field symbol, which indicates the particular meaning for the field.
Fields§
§symbol: FieldSymbol
The field symbol for the Field
, which corresponds to the field’s meaning with the
date pattern.
length: FieldLength
The length of the Field
, which in conjunction with the FieldSymbol
informs the width or
style of the formatting output corresponding to this field.
Trait Implementations§
source§impl From<(FieldSymbol, FieldLength)> for Field
impl From<(FieldSymbol, FieldLength)> for Field
source§fn from(input: (FieldSymbol, FieldLength)) -> Self
fn from(input: (FieldSymbol, FieldLength)) -> Self
Converts to this type from the input type.
source§impl Ord for Field
impl Ord for Field
source§impl PartialOrd for Field
impl PartialOrd for Field
source§impl<'a> ZeroMapKV<'a> for Field
impl<'a> ZeroMapKV<'a> for Field
impl Copy for Field
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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