pub enum PatternItem {
    Field(Field),
    Literal(char),
}Expand description
An element of a Pattern.
🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. While the serde representation of data structs is guaranteed
to be stable, their Rust representation might not be. Use with caution.
Variants§
Field(Field)
A field, like “abbreviated months”. Mostly follows UTS 35.
Literal(char)
A literal code point.
Trait Implementations§
Source§impl AsULE for PatternItem
 
impl AsULE for PatternItem
Source§fn to_unaligned(self) -> <PatternItem as AsULE>::ULE
 
fn to_unaligned(self) -> <PatternItem as AsULE>::ULE
Source§fn from_unaligned(unaligned: <PatternItem as AsULE>::ULE) -> PatternItem
 
fn from_unaligned(unaligned: <PatternItem as AsULE>::ULE) -> PatternItem
Source§impl Clone for PatternItem
 
impl Clone for PatternItem
Source§fn clone(&self) -> PatternItem
 
fn clone(&self) -> PatternItem
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 PatternItem
 
impl Debug for PatternItem
Source§impl<'de> Deserialize<'de> for PatternItem
 
impl<'de> Deserialize<'de> for PatternItem
Source§fn deserialize<__D>(
    __deserializer: __D,
) -> Result<PatternItem, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<PatternItem, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<(FieldSymbol, FieldLength)> for PatternItem
 
impl From<(FieldSymbol, FieldLength)> for PatternItem
Source§fn from(input: (FieldSymbol, FieldLength)) -> PatternItem
 
fn from(input: (FieldSymbol, FieldLength)) -> PatternItem
Converts to this type from the input type.
Source§impl From<PatternItem> for TimeGranularity
 
impl From<PatternItem> for TimeGranularity
Source§fn from(item: PatternItem) -> TimeGranularity
 
fn from(item: PatternItem) -> TimeGranularity
Retrieves the granularity of time represented by a PatternItem.
If the PatternItem is not time-related, returns None.
Source§impl From<char> for PatternItem
 
impl From<char> for PatternItem
Source§fn from(input: char) -> PatternItem
 
fn from(input: char) -> PatternItem
Converts to this type from the input type.
Source§impl FromIterator<PatternItem> for Pattern<'_>
 
impl FromIterator<PatternItem> for Pattern<'_>
Source§fn from_iter<T>(iter: T) -> Pattern<'_>where
    T: IntoIterator<Item = PatternItem>,
 
fn from_iter<T>(iter: T) -> Pattern<'_>where
    T: IntoIterator<Item = PatternItem>,
Creates a value from an iterator. Read more
Source§impl PartialEq for PatternItem
 
impl PartialEq for PatternItem
impl Copy for PatternItem
impl Eq for PatternItem
impl StructuralPartialEq for PatternItem
Auto Trait Implementations§
impl Freeze for PatternItem
impl RefUnwindSafe for PatternItem
impl Send for PatternItem
impl Sync for PatternItem
impl Unpin for PatternItem
impl UnwindSafe for PatternItem
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