Struct rust_icu_ucol::UCollator[][src]

pub struct UCollator { /* fields omitted */ }

Implementations

Compares strings first and second according to the collation rules in this collator.

Returns Ordering::Less if first compares as less than second, and for other return codes respectively.

Implements ucol_strcoll

Get a sort key for a string from this collator.

Returns a sort key.

Implements ucol_getSortKey

Compares strings first and second according to the collation rules in this collator.

Returns Ordering::Less if first compares as less than second, and for other return codes respectively.

In contrast to UCollator::strcoll, this function requires no string conversions to compare two rust strings.

Implements ucol_strcoll Implements ucol_strcollUTF8

Implements ucol_getStrength.

Implements ucol_setStrength

Implements $impl_name.

Implements $impl_name.

Trait Implementations

Formats the value using the given formatter. Read more

Implements $impl_function_name.

Makes a new collator from the supplied locale, e.g. en-US, or de@collation=phonebook.

Other examples:

  • el-u-kf-upper
  • el@colCaseFirst=upper

Implements ucol_open

The type returned in the event of a conversion error.

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

Performs the conversion.

Performs the conversion.

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.