pub enum IcuArgumentKind {
Argument,
Number,
Date,
Time,
List,
Duration,
Ago,
Name,
Select,
Plural,
SelectOrdinal,
}Expand description
Broad role of an ICU argument in a parsed message.
Variants§
Argument
Simple substitution such as {name}.
Number
Number formatter such as {count, number}.
Date
Date formatter such as {created, date}.
Time
Time formatter such as {created, time}.
List
List formatter such as {items, list}.
Duration
Duration formatter such as {elapsed, duration}.
Ago
Relative-time “ago” formatter.
Name
Name formatter.
Select
Select expression.
Plural
Cardinal plural expression.
SelectOrdinal
Ordinal plural expression.
Trait Implementations§
Source§impl Clone for IcuArgumentKind
impl Clone for IcuArgumentKind
Source§fn clone(&self) -> IcuArgumentKind
fn clone(&self) -> IcuArgumentKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IcuArgumentKind
impl Debug for IcuArgumentKind
Source§impl Ord for IcuArgumentKind
impl Ord for IcuArgumentKind
Source§fn cmp(&self, other: &IcuArgumentKind) -> Ordering
fn cmp(&self, other: &IcuArgumentKind) -> Ordering
1.21.0 (const: unstable) · 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 IcuArgumentKind
impl PartialEq for IcuArgumentKind
Source§fn eq(&self, other: &IcuArgumentKind) -> bool
fn eq(&self, other: &IcuArgumentKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for IcuArgumentKind
impl PartialOrd for IcuArgumentKind
impl Copy for IcuArgumentKind
impl Eq for IcuArgumentKind
impl StructuralPartialEq for IcuArgumentKind
Auto Trait Implementations§
impl Freeze for IcuArgumentKind
impl RefUnwindSafe for IcuArgumentKind
impl Send for IcuArgumentKind
impl Sync for IcuArgumentKind
impl Unpin for IcuArgumentKind
impl UnsafeUnpin for IcuArgumentKind
impl UnwindSafe for IcuArgumentKind
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