pub struct ControlCharNormalizer;Expand description
A global [Normalizer] removing control characters.
Trait Implementations§
Source§impl CharNormalizer for ControlCharNormalizer
impl CharNormalizer for ControlCharNormalizer
Auto Trait Implementations§
impl Freeze for ControlCharNormalizer
impl RefUnwindSafe for ControlCharNormalizer
impl Send for ControlCharNormalizer
impl Sync for ControlCharNormalizer
impl Unpin for ControlCharNormalizer
impl UnwindSafe for ControlCharNormalizer
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> 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 moreSource§impl<T> Normalizer for Twhere
T: CharNormalizer,
impl<T> Normalizer for Twhere
T: CharNormalizer,
Source§fn normalize<'o>(
&self,
token: Token<'o>,
options: &NormalizerOption<'_>,
) -> Token<'o>
fn normalize<'o>( &self, token: Token<'o>, options: &NormalizerOption<'_>, ) -> Token<'o>
Normalize the provided
Token.
Options can be set using the provided NormalizerOption.