Enum roe::UppercaseMode
source · pub enum UppercaseMode {
Full,
Ascii,
Turkic,
Lithuanian,
}
Expand description
Options to configure the behavior of uppercase
.
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, UppercaseMode::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).
Trait Implementations§
source§impl Clone for UppercaseMode
impl Clone for UppercaseMode
source§fn clone(&self) -> UppercaseMode
fn clone(&self) -> UppercaseMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UppercaseMode
impl Debug for UppercaseMode
source§impl Default for UppercaseMode
impl Default for UppercaseMode
source§impl FromStr for UppercaseMode
impl FromStr for UppercaseMode
source§impl Hash for UppercaseMode
impl Hash for UppercaseMode
source§impl Ord for UppercaseMode
impl Ord for UppercaseMode
source§fn cmp(&self, other: &UppercaseMode) -> Ordering
fn cmp(&self, other: &UppercaseMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<UppercaseMode> for UppercaseMode
impl PartialEq<UppercaseMode> for UppercaseMode
source§fn eq(&self, other: &UppercaseMode) -> bool
fn eq(&self, other: &UppercaseMode) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<UppercaseMode> for UppercaseMode
impl PartialOrd<UppercaseMode> for UppercaseMode
source§fn partial_cmp(&self, other: &UppercaseMode) -> Option<Ordering>
fn partial_cmp(&self, other: &UppercaseMode) -> 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