Enum LowercaseMode
Source pub enum LowercaseMode {
Full,
Ascii,
Turkic,
Lithuanian,
Fold,
}
Expand description
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.
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).
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Returns the “default value” for a type.
Read more
The associated error which can be returned from parsing.
Parses a string
s
to return a value of this type.
Read more
Compares and returns the maximum of two values.
Read more
Compares and returns the minimum of two values.
Read more
Restrict a value to a certain interval.
Read more
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
This method returns an ordering between
self
and
other
values if one exists.
Read more
Tests less than (for
self
and
other
) and is used by the
<
operator.
Read more
Tests less than or equal to (for
self
and
other
) and is used by the
<=
operator.
Read more
Tests greater than (for
self
and
other
) and is used by the
>
operator.
Read more
Tests greater than or equal to (for
self
and
other
) and is used by
the
>=
operator.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
🔬This is a nightly-only experimental API. (clone_to_uninit
)
Performs copy-assignment from
self
to
dest
.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.