pub enum FieldLength {
    One,
    Two,
    Three,
    Four,
    Five,
    Six,
    NumericOverride(FieldNumericOverrides),
}Expand description
An enum representing the length of a field within a date or time formatting pattern string.
Such strings represent fields as a letter occurring 1 or more times in a row, ex:
MMM, dd, y.  See the
LDML documentation in UTS 35
for more details.
Variants§
One
Numeric: minimum digits
Text: same as Self::Three
Two
Numeric: pad to 2 digits
Text: same as Self::Three
Three
Numeric: pad to 3 digits
Text: Abbreviated format.
Four
Numeric: pad to 4 digits
Text: Wide format.
Five
Numeric: pad to 5 digits
Text: Narrow format.
Six
Numeric: pad to 6 digits
Text: Short format.
NumericOverride(FieldNumericOverrides)
FieldLength::One (numeric), but overridden with a different numbering system
Trait Implementations§
Source§impl AsULE for FieldLength
 
impl AsULE for FieldLength
Source§fn to_unaligned(self) -> <FieldLength as AsULE>::ULE
 
fn to_unaligned(self) -> <FieldLength as AsULE>::ULE
Source§fn from_unaligned(unaligned: <FieldLength as AsULE>::ULE) -> FieldLength
 
fn from_unaligned(unaligned: <FieldLength as AsULE>::ULE) -> FieldLength
Source§impl Clone for FieldLength
 
impl Clone for FieldLength
Source§fn clone(&self) -> FieldLength
 
fn clone(&self) -> FieldLength
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 FieldLength
 
impl Debug for FieldLength
Source§impl<'de> Deserialize<'de> for FieldLength
 
impl<'de> Deserialize<'de> for FieldLength
Source§fn deserialize<__D>(
    __deserializer: __D,
) -> Result<FieldLength, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<FieldLength, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for FieldLength
 
impl Ord for FieldLength
Source§fn cmp(&self, other: &FieldLength) -> Ordering
 
fn cmp(&self, other: &FieldLength) -> Ordering
1.21.0 · 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
Source§impl PartialEq for FieldLength
 
impl PartialEq for FieldLength
Source§impl PartialOrd for FieldLength
 
impl PartialOrd for FieldLength
impl Copy for FieldLength
impl Eq for FieldLength
impl StructuralPartialEq for FieldLength
Auto Trait Implementations§
impl Freeze for FieldLength
impl RefUnwindSafe for FieldLength
impl Send for FieldLength
impl Sync for FieldLength
impl Unpin for FieldLength
impl UnwindSafe for FieldLength
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§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