Enum roe::LowercaseMode [−][src]
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 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.
Only the ASCII region, i.e. the characters 'A'..='Z'
and 'a'..='z'
,
are affected.
This option cannot be combined with any other option.
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.
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).
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
impl Clone for LowercaseMode
[src]
fn clone(&self) -> LowercaseMode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LowercaseMode
[src]
impl Debug for LowercaseMode
[src]
impl Default for LowercaseMode
[src]
impl Eq for LowercaseMode
[src]
impl FromStr for LowercaseMode
[src]
type Err = InvalidCaseMappingMode
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for LowercaseMode
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for LowercaseMode
[src]
fn cmp(&self, other: &LowercaseMode) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<LowercaseMode> for LowercaseMode
[src]
fn eq(&self, other: &LowercaseMode) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<LowercaseMode> for LowercaseMode
[src]
fn partial_cmp(&self, other: &LowercaseMode) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for LowercaseMode
[src]
impl StructuralPartialEq for LowercaseMode
[src]
impl TryFrom<&'_ [u8]> for LowercaseMode
[src]
type Error = InvalidCaseMappingMode
The type returned in the event of a conversion error.
fn try_from(value: &[u8]) -> Result<Self, Self::Error>
[src]
impl TryFrom<&'_ str> for LowercaseMode
[src]
type Error = InvalidCaseMappingMode
The type returned in the event of a conversion error.
fn try_from(value: &str) -> Result<Self, Self::Error>
[src]
impl TryFrom<Option<&'_ [u8]>> for LowercaseMode
[src]
type Error = InvalidCaseMappingMode
The type returned in the event of a conversion error.
fn try_from(value: Option<&[u8]>) -> Result<Self, Self::Error>
[src]
impl TryFrom<Option<&'_ str>> for LowercaseMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for LowercaseMode
[src]
impl Send for LowercaseMode
[src]
impl Sync for LowercaseMode
[src]
impl Unpin for LowercaseMode
[src]
impl UnwindSafe for LowercaseMode
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,