Enum translate_storage::Count [] [src]

pub enum Count {
    Zero,
    One,
    Two,
    Few,
    Many,
    Other,
}

Plural variants

Which variants are used depends on the language. In English it is easy: 1 is One and everything else is Other. But other languages may have more cases, with Arabic having all six.

Variants

Zero has a separate variant in some langauges.

One. In some languages also includes zero.

Special case for two.

Small number. What is small number depends on the language.

Large number. What is large number depends on the language.

Any other number.

Trait Implementations

impl Copy for Count
[src]

impl Clone for Count
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Count
[src]

Formats the value using the given formatter.

impl Eq for Count
[src]

impl PartialEq for Count
[src]

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

This method tests for !=.

impl Ord for Count
[src]

This method returns an Ordering between self and other. Read more

impl PartialOrd for Count
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Hash for Count
[src]

Feeds this value into the given [Hasher]. Read more

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

impl Default for Count
[src]

Returns the "default value" for a type. Read more