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<'de> Deserialize<'de> for Field
impl<'de> Deserialize<'de> for Field
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 From<TimeZoneName> for Field
impl From<TimeZoneName> for Field
source§fn from(time_zone_name: TimeZoneName) -> Self
fn from(time_zone_name: TimeZoneName) -> Self
Converts to this type from the input type.
source§impl Ord for Field
impl Ord for Field
source§impl PartialEq for Field
impl PartialEq for Field
source§impl PartialOrd for Field
impl PartialOrd for Field
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> ZeroMapKV<'a> for Field
impl<'a> ZeroMapKV<'a> for Field
impl Copy for Field
impl Eq for Field
impl StructuralEq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
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