pub struct Normy<P: Process> { /* private fields */ }Implementations§
Source§impl<P: FusablePipeline> Normy<P>
impl<P: FusablePipeline> Normy<P>
Sourcepub fn normalize<'a>(
&'a self,
text: &'a str,
) -> Result<Cow<'a, str>, NormyError>
pub fn normalize<'a>( &'a self, text: &'a str, ) -> Result<Cow<'a, str>, NormyError>
Normalize text using the fastest available execution strategy. Automatically uses fusion when supported.
Sourcepub fn normalize_no_fusion<'a>(
&'a self,
text: &'a str,
) -> Result<Cow<'a, str>, NormyError>
pub fn normalize_no_fusion<'a>( &'a self, text: &'a str, ) -> Result<Cow<'a, str>, NormyError>
Normalize text without fusion.
This forces full materialization at each stage and disables iterator fusion, even when the pipeline supports it.
Source§impl Normy<DynamicProcess>
impl Normy<DynamicProcess>
Source§impl Normy<EmptyProcess>
impl Normy<EmptyProcess>
pub fn builder() -> NormyBuilder<EmptyProcess>
Source§impl Normy<DynamicProcess>
impl Normy<DynamicProcess>
pub fn dynamic_builder() -> DynamicNormyBuilder
Auto Trait Implementations§
impl<P> Freeze for Normy<P>where
P: Freeze,
impl<P> RefUnwindSafe for Normy<P>where
P: RefUnwindSafe,
impl<P> Send for Normy<P>where
P: Send,
impl<P> Sync for Normy<P>where
P: Sync,
impl<P> Unpin for Normy<P>where
P: Unpin,
impl<P> UnwindSafe for Normy<P>where
P: UnwindSafe,
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