Enum icu_plurals::PluralRuleType[][src]

pub enum PluralRuleType {
    Cardinal,
    Ordinal,
}
Expand description

A type of a plural rule which can be associated with the PluralRules struct.

Variants

Cardinal

Cardinal plural forms express quantities of units such as time, currency or distance, used in conjunction with a number expressed in decimal digits (i.e. “2”, not “two”).

For example, English has two forms for cardinals:

  • One: 1 day
  • Other: 0 days, 2 days, 10 days, 0.3 days
Ordinal

Ordinal plural forms denote the order of items in a set and are always integers.

For example, English has four forms for ordinals:

  • One: 1st floor, 21st floor, 101st floor
  • Two: 2nd floor, 22nd floor, 102nd floor
  • Few: 3rd floor, 23rd floor, 103rd floor
  • Other: 4th floor, 11th floor, 96th floor

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Clone this trait object reference, returning a boxed trait object.

Return this boxed trait object as Box<dyn Any>. Read more

Return this trait object reference as &dyn Any. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.