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
sourceimpl Clone for CollationOptions
impl Clone for CollationOptions
sourcefn clone(&self) -> CollationOptions
fn clone(&self) -> CollationOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CollationOptions
impl Debug for CollationOptions
sourceimpl Default for CollationOptions
impl Default for CollationOptions
sourceimpl Hash for CollationOptions
impl Hash for CollationOptions
sourceimpl Ord for CollationOptions
impl Ord for CollationOptions
sourceimpl PartialEq<CollationOptions> for CollationOptions
impl PartialEq<CollationOptions> for CollationOptions
sourcefn eq(&self, other: &CollationOptions) -> bool
fn eq(&self, other: &CollationOptions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CollationOptions) -> bool
fn ne(&self, other: &CollationOptions) -> bool
This method tests for !=
.
sourceimpl PartialOrd<CollationOptions> for CollationOptions
impl PartialOrd<CollationOptions> for CollationOptions
sourcefn partial_cmp(&self, other: &CollationOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &CollationOptions) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for CollationOptions
impl Eq for CollationOptions
impl StructuralEq for CollationOptions
impl StructuralPartialEq for CollationOptions
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