pub enum NormalizerWrapper {
Show 14 variants
BertNormalizer(BertNormalizer),
StripNormalizer(Strip),
StripAccents(StripAccents),
NFC(NFC),
NFD(NFD),
NFKC(NFKC),
NFKD(NFKD),
Sequence(Sequence),
Lowercase(Lowercase),
Nmt(Nmt),
Precompiled(Precompiled),
Replace(Replace),
Prepend(Prepend),
ByteLevel(ByteLevel),
}Expand description
Wrapper for known Normalizers.
Variants§
BertNormalizer(BertNormalizer)
StripNormalizer(Strip)
StripAccents(StripAccents)
NFC(NFC)
NFD(NFD)
NFKC(NFKC)
NFKD(NFKD)
Sequence(Sequence)
Lowercase(Lowercase)
Nmt(Nmt)
Precompiled(Precompiled)
Replace(Replace)
Prepend(Prepend)
ByteLevel(ByteLevel)
Trait Implementations§
Source§impl Clone for NormalizerWrapper
impl Clone for NormalizerWrapper
Source§fn clone(&self) -> NormalizerWrapper
fn clone(&self) -> NormalizerWrapper
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 NormalizerWrapper
impl Debug for NormalizerWrapper
Source§impl<'de> Deserialize<'de> for NormalizerWrapper
impl<'de> Deserialize<'de> for NormalizerWrapper
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
Source§impl From<BertNormalizer> for NormalizerWrapper
impl From<BertNormalizer> for NormalizerWrapper
Source§fn from(from: BertNormalizer) -> Self
fn from(from: BertNormalizer) -> Self
Converts to this type from the input type.
Source§impl From<ByteLevel> for NormalizerWrapper
impl From<ByteLevel> for NormalizerWrapper
Source§impl From<Lowercase> for NormalizerWrapper
impl From<Lowercase> for NormalizerWrapper
Source§impl From<NFC> for NormalizerWrapper
impl From<NFC> for NormalizerWrapper
Source§impl From<NFD> for NormalizerWrapper
impl From<NFD> for NormalizerWrapper
Source§impl From<NFKC> for NormalizerWrapper
impl From<NFKC> for NormalizerWrapper
Source§impl From<NFKD> for NormalizerWrapper
impl From<NFKD> for NormalizerWrapper
Source§impl From<Nmt> for NormalizerWrapper
impl From<Nmt> for NormalizerWrapper
Source§impl From<Precompiled> for NormalizerWrapper
impl From<Precompiled> for NormalizerWrapper
Source§fn from(from: Precompiled) -> Self
fn from(from: Precompiled) -> Self
Converts to this type from the input type.
Source§impl From<Prepend> for NormalizerWrapper
impl From<Prepend> for NormalizerWrapper
Source§impl From<Replace> for NormalizerWrapper
impl From<Replace> for NormalizerWrapper
Source§impl From<Sequence> for NormalizerWrapper
impl From<Sequence> for NormalizerWrapper
Source§impl From<Strip> for NormalizerWrapper
impl From<Strip> for NormalizerWrapper
Source§impl From<StripAccents> for NormalizerWrapper
impl From<StripAccents> for NormalizerWrapper
Source§fn from(from: StripAccents) -> Self
fn from(from: StripAccents) -> Self
Converts to this type from the input type.
Source§impl Normalizer for NormalizerWrapper
impl Normalizer for NormalizerWrapper
Auto Trait Implementations§
impl Freeze for NormalizerWrapper
impl RefUnwindSafe for NormalizerWrapper
impl Send for NormalizerWrapper
impl Sync for NormalizerWrapper
impl Unpin for NormalizerWrapper
impl UnwindSafe for NormalizerWrapper
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