Struct icu_normalizer::uts46::Uts46Mapper
source · pub struct Uts46Mapper { /* private fields */ }
Expand description
A mapper that knows how to performs the subsets of UTS 46 processing documented on the methods.
Implementations§
source§impl Uts46Mapper
impl Uts46Mapper
sourcepub fn as_borrowed(&self) -> Uts46MapperBorrowed<'_>
pub fn as_borrowed(&self) -> Uts46MapperBorrowed<'_>
Constructs a borrowed version of this type for more efficient querying.
sourcepub const fn new() -> Uts46MapperBorrowed<'static>
pub const fn new() -> Uts46MapperBorrowed<'static>
Construct with compiled data.
sourcepub fn try_new<D>(provider: &D) -> Result<Self, DataError>where
D: DataProvider<Uts46DecompositionDataV2Marker> + DataProvider<CanonicalDecompositionTablesV1Marker> + DataProvider<CompatibilityDecompositionTablesV1Marker> + DataProvider<CanonicalCompositionsV1Marker> + ?Sized,
pub fn try_new<D>(provider: &D) -> Result<Self, DataError>where
D: DataProvider<Uts46DecompositionDataV2Marker> + DataProvider<CanonicalDecompositionTablesV1Marker> + DataProvider<CompatibilityDecompositionTablesV1Marker> + DataProvider<CanonicalCompositionsV1Marker> + ?Sized,
Construct with provider.
A version of Self::new
that uses custom data provided by a DataProvider
.
⚠️ The bounds on provider may change over time, including in SemVer minor releases.
Trait Implementations§
source§impl Debug for Uts46Mapper
impl Debug for Uts46Mapper
Auto Trait Implementations§
impl Freeze for Uts46Mapper
impl RefUnwindSafe for Uts46Mapper
impl Send for Uts46Mapper
impl Sync for Uts46Mapper
impl Unpin for Uts46Mapper
impl UnwindSafe for Uts46Mapper
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
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>
Converts
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>
Converts
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