Enum roe::UppercaseMode[][src]

pub enum UppercaseMode {
    Full,
    Ascii,
    Turkic,
    Lithuanian,
}

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

impl Clone for UppercaseMode[src]

impl Copy for UppercaseMode[src]

impl Debug for UppercaseMode[src]

impl Default for UppercaseMode[src]

impl Eq for UppercaseMode[src]

impl FromStr for UppercaseMode[src]

type Err = InvalidCaseMappingMode

The associated error which can be returned from parsing.

impl Hash for UppercaseMode[src]

impl Ord for UppercaseMode[src]

impl PartialEq<UppercaseMode> for UppercaseMode[src]

impl PartialOrd<UppercaseMode> for UppercaseMode[src]

impl StructuralEq for UppercaseMode[src]

impl StructuralPartialEq for UppercaseMode[src]

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

type Error = InvalidCaseMappingMode

The type returned in the event of a conversion error.

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

type Error = InvalidCaseMappingMode

The type returned in the event of a conversion error.

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

type Error = InvalidCaseMappingMode

The type returned in the event of a conversion error.

impl TryFrom<Option<&'_ str>> for UppercaseMode[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.