Struct icu_capi::locale::ffi::LocaleCanonicalizer
source · pub struct LocaleCanonicalizer(/* private fields */);
Expand description
A locale canonicalizer.
Implementations§
source§impl LocaleCanonicalizer
impl LocaleCanonicalizer
sourcepub fn create() -> Box<LocaleCanonicalizer>
pub fn create() -> Box<LocaleCanonicalizer>
Create a new LocaleCanonicalizer
using compiled data.
sourcepub fn create_with_provider(
provider: &DataProvider,
) -> Result<Box<LocaleCanonicalizer>, DataError>
pub fn create_with_provider( provider: &DataProvider, ) -> Result<Box<LocaleCanonicalizer>, DataError>
Create a new LocaleCanonicalizer
.
sourcepub fn create_extended() -> Box<LocaleCanonicalizer>
pub fn create_extended() -> Box<LocaleCanonicalizer>
Create a new LocaleCanonicalizer
with extended data using compiled data.
sourcepub fn create_extended_with_provider(
provider: &DataProvider,
) -> Result<Box<LocaleCanonicalizer>, DataError>
pub fn create_extended_with_provider( provider: &DataProvider, ) -> Result<Box<LocaleCanonicalizer>, DataError>
Create a new LocaleCanonicalizer
with extended data.
pub fn canonicalize(&self, locale: &mut Locale) -> TransformResult
Auto Trait Implementations§
impl Freeze for LocaleCanonicalizer
impl RefUnwindSafe for LocaleCanonicalizer
impl Send for LocaleCanonicalizer
impl Sync for LocaleCanonicalizer
impl Unpin for LocaleCanonicalizer
impl UnwindSafe for LocaleCanonicalizer
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