pub struct CollationOptions {
    pub keys_source: KeysSource,
    pub shifting: bool,
}
Expand description

This struct specifies the options to be passed to the collate function. You can choose between two tables (DUCET and CLDR root), and between two approaches to the handling of variable-weight characters (“non-ignorable” and “shifted”). The default, and a good starting point for Unicode collation, is to use the CLDR table with the “shifted” approach.

Fields

keys_source: KeysSource

The table of weights to be used (currently either DUCET or CLDR)

shifting: bool

The approach to handling variable-weight characters (“non-ignorable” or “shifted”). For our purposes, shifting is either true (recommended) or false.

Trait Implementations

Returns the “default value” for a type. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.