Struct icu_normalizer::DecomposingNormalizer
source · pub struct DecomposingNormalizer { /* private fields */ }
Expand description
A normalizer for performing decomposing normalization.
Implementations§
source§impl DecomposingNormalizer
impl DecomposingNormalizer
sourcepub fn as_borrowed(&self) -> DecomposingNormalizerBorrowed<'_>
pub fn as_borrowed(&self) -> DecomposingNormalizerBorrowed<'_>
Constructs a borrowed version of this type for more efficient querying.
sourcepub const fn new_nfd() -> DecomposingNormalizerBorrowed<'static>
pub const fn new_nfd() -> DecomposingNormalizerBorrowed<'static>
NFD constructor using compiled data.
✨ Enabled with the compiled_data
Cargo feature.
sourcepub fn try_new_nfd_with_any_provider(
provider: &(impl AnyProvider + ?Sized),
) -> Result<Self, DataError>
pub fn try_new_nfd_with_any_provider( provider: &(impl AnyProvider + ?Sized), ) -> Result<Self, DataError>
A version of [Self :: new_nfd
] that uses custom data provided by an AnyProvider
.
sourcepub fn try_new_nfd_with_buffer_provider(
provider: &(impl BufferProvider + ?Sized),
) -> Result<Self, DataError>
pub fn try_new_nfd_with_buffer_provider( provider: &(impl BufferProvider + ?Sized), ) -> Result<Self, DataError>
A version of [Self :: new_nfd
] that uses custom data provided by a BufferProvider
.
✨ Enabled with the serde
feature.
sourcepub fn try_new_nfd_unstable<D>(provider: &D) -> Result<Self, DataError>where
D: DataProvider<CanonicalDecompositionDataV1Marker> + DataProvider<CanonicalDecompositionTablesV1Marker> + ?Sized,
pub fn try_new_nfd_unstable<D>(provider: &D) -> Result<Self, DataError>where
D: DataProvider<CanonicalDecompositionDataV1Marker> + DataProvider<CanonicalDecompositionTablesV1Marker> + ?Sized,
A version of Self::new_nfd
that uses custom data provided by a DataProvider
.
sourcepub fn try_new_nfkd_with_any_provider(
provider: &(impl AnyProvider + ?Sized),
) -> Result<Self, DataError>
pub fn try_new_nfkd_with_any_provider( provider: &(impl AnyProvider + ?Sized), ) -> Result<Self, DataError>
A version of [Self :: new_nfkd
] that uses custom data provided by an AnyProvider
.
sourcepub fn try_new_nfkd_with_buffer_provider(
provider: &(impl BufferProvider + ?Sized),
) -> Result<Self, DataError>
pub fn try_new_nfkd_with_buffer_provider( provider: &(impl BufferProvider + ?Sized), ) -> Result<Self, DataError>
A version of [Self :: new_nfkd
] that uses custom data provided by a BufferProvider
.
✨ Enabled with the serde
feature.
sourcepub const fn new_nfkd() -> DecomposingNormalizerBorrowed<'static>
pub const fn new_nfkd() -> DecomposingNormalizerBorrowed<'static>
NFKD constructor using compiled data.
✨ Enabled with the compiled_data
Cargo feature.
sourcepub fn try_new_nfkd_unstable<D>(provider: &D) -> Result<Self, DataError>where
D: DataProvider<CanonicalDecompositionDataV1Marker> + DataProvider<CompatibilityDecompositionSupplementV1Marker> + DataProvider<CanonicalDecompositionTablesV1Marker> + DataProvider<CompatibilityDecompositionTablesV1Marker> + ?Sized,
pub fn try_new_nfkd_unstable<D>(provider: &D) -> Result<Self, DataError>where
D: DataProvider<CanonicalDecompositionDataV1Marker> + DataProvider<CompatibilityDecompositionSupplementV1Marker> + DataProvider<CanonicalDecompositionTablesV1Marker> + DataProvider<CompatibilityDecompositionTablesV1Marker> + ?Sized,
A version of Self::new_nfkd
that uses custom data provided by a DataProvider
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DecomposingNormalizer
impl RefUnwindSafe for DecomposingNormalizer
impl Send for DecomposingNormalizer
impl Sync for DecomposingNormalizer
impl Unpin for DecomposingNormalizer
impl UnwindSafe for DecomposingNormalizer
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