Enum roe::LowercaseMode[][src]

pub enum LowercaseMode {
    Full,
    Ascii,
    Turkic,
    Lithuanian,
    Fold,
}

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

impl Clone for LowercaseMode[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.

impl Hash for LowercaseMode[src]

impl Ord for LowercaseMode[src]

impl PartialEq<LowercaseMode> for LowercaseMode[src]

impl PartialOrd<LowercaseMode> for LowercaseMode[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.

impl TryFrom<&'_ str> for LowercaseMode[src]

type Error = InvalidCaseMappingMode

The type returned in the event of a conversion error.

impl TryFrom<Option<&'_ [u8]>> for LowercaseMode[src]

type Error = InvalidCaseMappingMode

The type returned in the event of a conversion error.

impl TryFrom<Option<&'_ str>> for LowercaseMode[src]

type Error = InvalidCaseMappingMode

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.