Enum roe::UppercaseMode [−][src]
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 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).
Trait Implementations
impl Clone for UppercaseMode
[src]
fn clone(&self) -> UppercaseMode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for UppercaseMode
[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 UppercaseMode
[src]
fn cmp(&self, other: &UppercaseMode) -> 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<UppercaseMode> for UppercaseMode
[src]
fn eq(&self, other: &UppercaseMode) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<UppercaseMode> for UppercaseMode
[src]
fn partial_cmp(&self, other: &UppercaseMode) -> 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 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.
fn try_from(value: &[u8]) -> Result<Self, Self::Error>
[src]
impl TryFrom<&'_ str> for UppercaseMode
[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 UppercaseMode
[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 UppercaseMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for UppercaseMode
[src]
impl Send for UppercaseMode
[src]
impl Sync for UppercaseMode
[src]
impl Unpin for UppercaseMode
[src]
impl UnwindSafe for UppercaseMode
[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>,