Struct icu_normalizer::ComposingNormalizer
source · 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_with_any_provider(
provider: &(impl AnyProvider + ?Sized),
) -> Result<Self, DataError>
pub fn try_new_nfc_with_any_provider( provider: &(impl AnyProvider + ?Sized), ) -> Result<Self, DataError>
A version of [Self :: new_nfc
] that uses custom data provided by an AnyProvider
.
sourcepub fn try_new_nfc_with_buffer_provider(
provider: &(impl BufferProvider + ?Sized),
) -> Result<Self, DataError>
pub fn try_new_nfc_with_buffer_provider( provider: &(impl BufferProvider + ?Sized), ) -> Result<Self, DataError>
A version of [Self :: new_nfc
] that uses custom data provided by a BufferProvider
.
✨ Enabled with the serde
feature.
sourcepub fn try_new_nfc_unstable<D>(provider: &D) -> Result<Self, DataError>where
D: DataProvider<CanonicalDecompositionDataV1Marker> + DataProvider<CanonicalDecompositionTablesV1Marker> + DataProvider<CanonicalCompositionsV1Marker> + ?Sized,
pub fn try_new_nfc_unstable<D>(provider: &D) -> Result<Self, DataError>where
D: DataProvider<CanonicalDecompositionDataV1Marker> + DataProvider<CanonicalDecompositionTablesV1Marker> + DataProvider<CanonicalCompositionsV1Marker> + ?Sized,
A version of Self::new_nfc
that uses custom data provided by a DataProvider
.
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_with_any_provider(
provider: &(impl AnyProvider + ?Sized),
) -> Result<Self, DataError>
pub fn try_new_nfkc_with_any_provider( provider: &(impl AnyProvider + ?Sized), ) -> Result<Self, DataError>
A version of [Self :: new_nfkc
] that uses custom data provided by an AnyProvider
.
sourcepub fn try_new_nfkc_with_buffer_provider(
provider: &(impl BufferProvider + ?Sized),
) -> Result<Self, DataError>
pub fn try_new_nfkc_with_buffer_provider( provider: &(impl BufferProvider + ?Sized), ) -> Result<Self, DataError>
A version of [Self :: new_nfkc
] that uses custom data provided by a BufferProvider
.
✨ Enabled with the serde
feature.
sourcepub fn try_new_nfkc_unstable<D>(provider: &D) -> Result<Self, DataError>where
D: DataProvider<CanonicalDecompositionDataV1Marker> + DataProvider<CompatibilityDecompositionSupplementV1Marker> + DataProvider<CanonicalDecompositionTablesV1Marker> + DataProvider<CompatibilityDecompositionTablesV1Marker> + DataProvider<CanonicalCompositionsV1Marker> + ?Sized,
pub fn try_new_nfkc_unstable<D>(provider: &D) -> Result<Self, DataError>where
D: DataProvider<CanonicalDecompositionDataV1Marker> + DataProvider<CompatibilityDecompositionSupplementV1Marker> + DataProvider<CanonicalDecompositionTablesV1Marker> + DataProvider<CompatibilityDecompositionTablesV1Marker> + DataProvider<CanonicalCompositionsV1Marker> + ?Sized,
A version of Self::new_nfkc
that uses custom data provided by a DataProvider
.
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
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>
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>
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 more