#[non_exhaustive]pub enum NormalizeMode {
Default,
DefaultCompose,
All,
AllCompose,
}
Expand description
Defines how a Unicode string is transformed in a canonical form, standardizing such issues as whether a character with an accent is represented as a base character and combining accent or as a single precomposed character. Unicode strings should generally be normalized before comparing them.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Default
standardize differences that do not affect the text content, such as the above-mentioned accent representation
DefaultCompose
like Default
, but with
composed forms rather than a maximally decomposed form
All
beyond Default
also standardize the
“compatibility” characters in Unicode, such as SUPERSCRIPT THREE
to the standard forms (in this case DIGIT THREE). Formatting
information may be lost but for most text operations such
characters should be considered the same
AllCompose
like All
, but with composed
forms rather than a maximally decomposed form
Trait Implementations§
Source§impl Clone for NormalizeMode
impl Clone for NormalizeMode
Source§fn clone(&self) -> NormalizeMode
fn clone(&self) -> NormalizeMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NormalizeMode
impl Debug for NormalizeMode
Source§impl From<NormalizeMode> for Value
impl From<NormalizeMode> for Value
Source§fn from(v: NormalizeMode) -> Self
fn from(v: NormalizeMode) -> Self
Source§impl<'a> FromValue<'a> for NormalizeMode
impl<'a> FromValue<'a> for NormalizeMode
Source§type Checker = GenericValueTypeChecker<NormalizeMode>
type Checker = GenericValueTypeChecker<NormalizeMode>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value
. Read moreSource§impl HasParamSpec for NormalizeMode
impl HasParamSpec for NormalizeMode
type ParamSpec = ParamSpecEnum
Source§type SetValue = NormalizeMode
type SetValue = NormalizeMode
type BuilderFn = fn(_: &str, _: NormalizeMode) -> ParamSpecEnumBuilder<'_, NormalizeMode>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for NormalizeMode
impl Hash for NormalizeMode
Source§impl Ord for NormalizeMode
impl Ord for NormalizeMode
Source§fn cmp(&self, other: &NormalizeMode) -> Ordering
fn cmp(&self, other: &NormalizeMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for NormalizeMode
impl PartialEq for NormalizeMode
Source§impl PartialOrd for NormalizeMode
impl PartialOrd for NormalizeMode
Source§impl StaticType for NormalizeMode
impl StaticType for NormalizeMode
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.Source§impl ToValue for NormalizeMode
impl ToValue for NormalizeMode
Source§impl ValueType for NormalizeMode
impl ValueType for NormalizeMode
Source§type Type = NormalizeMode
type Type = NormalizeMode
Type
from. Read moreimpl Copy for NormalizeMode
impl Eq for NormalizeMode
impl StructuralPartialEq for NormalizeMode
Auto Trait Implementations§
impl Freeze for NormalizeMode
impl RefUnwindSafe for NormalizeMode
impl Send for NormalizeMode
impl Sync for NormalizeMode
impl Unpin for NormalizeMode
impl UnwindSafe for NormalizeMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.