Struct feruca::CollationOptions
source · [−]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
Auto Trait Implementations
impl RefUnwindSafe for CollationOptions
impl Send for CollationOptions
impl Sync for CollationOptions
impl Unpin for CollationOptions
impl UnwindSafe for CollationOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more