pub struct Normalizer { /* private fields */ }Expand description
Immutable, thread-safe normalizer. Clones share validated built-in resources.
Implementations§
Source§impl Normalizer
impl Normalizer
Sourcepub fn normalizer_id(&self) -> &'static str
pub fn normalizer_id(&self) -> &'static str
Diagnostic identity of the one built-in normalizer.
Sourcepub fn new() -> Result<Self, NormalizeError>
pub fn new() -> Result<Self, NormalizeError>
Create the built-in normalizer, validating its immutable resources.
Sourcepub fn normalize(
&self,
input: &str,
options: &NormalizeOptions,
) -> Result<NormalizeResult, NormalizeError>
pub fn normalize( &self, input: &str, options: &NormalizeOptions, ) -> Result<NormalizeResult, NormalizeError>
Normalize synchronously with default, uncancelled work control.
Sourcepub fn normalize_controlled(
&self,
input: &str,
options: &NormalizeOptions,
control: &WorkControl,
) -> Result<NormalizeResult, NormalizeError>
pub fn normalize_controlled( &self, input: &str, options: &NormalizeOptions, control: &WorkControl, ) -> Result<NormalizeResult, NormalizeError>
Normalize with cooperative cancellation and an optional deadline.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Normalizer
impl RefUnwindSafe for Normalizer
impl Send for Normalizer
impl Sync for Normalizer
impl Unpin for Normalizer
impl UnsafeUnpin for Normalizer
impl UnwindSafe for Normalizer
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