pub struct NormalizationRules {
pub check_unicode_normalization: bool,
pub preferred_normalization: NormalizationForm,
pub check_width_consistency: bool,
pub check_hangul_composition: bool,
pub warn_on_whitespace: bool,
}Expand description
Rules for surface form normalization.
Fields§
§check_unicode_normalization: boolWhether to check for Unicode normalization (NFC/NFD)
preferred_normalization: NormalizationFormPreferred Unicode normalization form
check_width_consistency: boolWhether to check for full-width/half-width consistency
check_hangul_composition: boolWhether to check for Hangul jamo composition
warn_on_whitespace: boolWhether to warn on whitespace in surface forms
Trait Implementations§
Source§impl Clone for NormalizationRules
impl Clone for NormalizationRules
Source§fn clone(&self) -> NormalizationRules
fn clone(&self) -> NormalizationRules
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NormalizationRules
impl Debug for NormalizationRules
Source§impl Default for NormalizationRules
impl Default for NormalizationRules
Source§impl<'de> Deserialize<'de> for NormalizationRules
impl<'de> Deserialize<'de> for NormalizationRules
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NormalizationRules
impl RefUnwindSafe for NormalizationRules
impl Send for NormalizationRules
impl Sync for NormalizationRules
impl Unpin for NormalizationRules
impl UnsafeUnpin for NormalizationRules
impl UnwindSafe for NormalizationRules
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more