pub struct NfdNormalizer;Expand description
NFD normalizer: Canonical Decomposition.
Implementations§
Source§impl NfdNormalizer
impl NfdNormalizer
Sourcepub fn quick_check(&self, input: &str) -> IsNormalized
pub fn quick_check(&self, input: &str) -> IsNormalized
Run the NFD quick-check algorithm on input.
Sourcepub fn normalize<'a>(&self, input: &'a str) -> Cow<'a, str>
pub fn normalize<'a>(&self, input: &'a str) -> Cow<'a, str>
Normalize the input string to NFD form.
Returns Cow::Borrowed if the input is already in NFD.
Sourcepub fn normalize_to(&self, input: &str, out: &mut String) -> bool
pub fn normalize_to(&self, input: &str, out: &mut String) -> bool
Normalize the input string to NFD form, appending to out.
Returns true if the input was already normalized (nothing was modified).
Sourcepub fn is_normalized(&self, input: &str) -> bool
pub fn is_normalized(&self, input: &str) -> bool
Check if the input is already in NFD form.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NfdNormalizer
impl RefUnwindSafe for NfdNormalizer
impl Send for NfdNormalizer
impl Sync for NfdNormalizer
impl Unpin for NfdNormalizer
impl UnsafeUnpin for NfdNormalizer
impl UnwindSafe for NfdNormalizer
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