Enum roe::LowercaseMode
source · pub enum LowercaseMode {
Full,
Ascii,
Turkic,
Lithuanian,
Fold,
}
Expand description
Options to configure the behavior of lowercase
.
Which letters exactly are replaced, and by which other letters, depends on the given options.
See individual variants for a description of the available behaviors.
If you’re not sure which mode to choose, LowercaseMode::Full
is a a good
default.
Variants§
Full
Full Unicode case mapping, suitable for most languages.
See the Turkic and Lithuanian variants for exceptions.
Context-dependent case mapping as described in Table 3-14 of the Unicode standard is currently not supported.
Ascii
Only the ASCII region, i.e. the characters 'A'..='Z'
and 'a'..='z'
,
are affected.
This option cannot be combined with any other option.
Turkic
Full Unicode case mapping, adapted for Turkic languages (Turkish, Azerbaijani, …).
This means that upper case I is mapped to lower case dotless i, and so on.
Lithuanian
Currently, just full Unicode case mapping.
In the future, full Unicode case mapping adapted for Lithuanian (keeping the dot on the lower case i even if there is an accent on top).
Fold
Unicode case folding, which is more far-reaching than Unicode case mapping.
This option currently cannot be combined with any other option (i.e. there is currently no variant for turkic languages).
Trait Implementations§
source§impl Clone for LowercaseMode
impl Clone for LowercaseMode
source§fn clone(&self) -> LowercaseMode
fn clone(&self) -> LowercaseMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LowercaseMode
impl Debug for LowercaseMode
source§impl Default for LowercaseMode
impl Default for LowercaseMode
source§impl FromStr for LowercaseMode
impl FromStr for LowercaseMode
source§impl Hash for LowercaseMode
impl Hash for LowercaseMode
source§impl Ord for LowercaseMode
impl Ord for LowercaseMode
source§fn cmp(&self, other: &LowercaseMode) -> Ordering
fn cmp(&self, other: &LowercaseMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<LowercaseMode> for LowercaseMode
impl PartialEq<LowercaseMode> for LowercaseMode
source§fn eq(&self, other: &LowercaseMode) -> bool
fn eq(&self, other: &LowercaseMode) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<LowercaseMode> for LowercaseMode
impl PartialOrd<LowercaseMode> for LowercaseMode
source§fn partial_cmp(&self, other: &LowercaseMode) -> Option<Ordering>
fn partial_cmp(&self, other: &LowercaseMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more