pub struct ComposingNormalizer { /* private fields */ }
Expand description
A normalizer for performing composing normalization.
Implementations§
Source§impl ComposingNormalizer
impl ComposingNormalizer
Sourcepub fn as_borrowed(&self) -> ComposingNormalizerBorrowed<'_>
pub fn as_borrowed(&self) -> ComposingNormalizerBorrowed<'_>
Constructs a borrowed version of this type for more efficient querying.
Sourcepub const fn new_nfc() -> ComposingNormalizerBorrowed<'static>
pub const fn new_nfc() -> ComposingNormalizerBorrowed<'static>
NFC constructor using compiled data.
✨ Enabled with the compiled_data
Cargo feature.
Sourcepub fn try_new_nfc_unstable<D>(provider: &D) -> Result<Self, DataError>where
D: DataProvider<NormalizerNfdDataV1> + DataProvider<NormalizerNfdTablesV1> + DataProvider<NormalizerNfcV1> + ?Sized,
pub fn try_new_nfc_unstable<D>(provider: &D) -> Result<Self, DataError>where
D: DataProvider<NormalizerNfdDataV1> + DataProvider<NormalizerNfdTablesV1> + DataProvider<NormalizerNfcV1> + ?Sized,
A version of Self::new_nfc
that uses custom data provided by a DataProvider
.
⚠️ The bounds on provider may change over time, including in SemVer minor releases.
Sourcepub const fn new_nfkc() -> ComposingNormalizerBorrowed<'static>
pub const fn new_nfkc() -> ComposingNormalizerBorrowed<'static>
NFKC constructor using compiled data.
✨ Enabled with the compiled_data
Cargo feature.
Sourcepub fn try_new_nfkc_unstable<D>(provider: &D) -> Result<Self, DataError>
pub fn try_new_nfkc_unstable<D>(provider: &D) -> Result<Self, DataError>
A version of Self::new_nfkc
that uses custom data provided by a DataProvider
.
⚠️ The bounds on provider may change over time, including in SemVer minor releases.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComposingNormalizer
impl RefUnwindSafe for ComposingNormalizer
impl Send for ComposingNormalizer
impl Sync for ComposingNormalizer
impl Unpin for ComposingNormalizer
impl UnwindSafe for ComposingNormalizer
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