Struct icu_capi::exemplar_chars::ffi::ExemplarCharacters
source · pub struct ExemplarCharacters(pub ExemplarCharacters);
Expand description
A set of “exemplar characters” for a given locale.
Tuple Fields§
§0: ExemplarCharacters
Implementations§
source§impl ExemplarCharacters
impl ExemplarCharacters
sourcepub fn contains_str(&self, s: &DiplomatStr) -> bool
pub fn contains_str(&self, s: &DiplomatStr) -> bool
Checks whether the string is in the set.
sourcepub fn create_main(
locale: &Locale,
) -> Result<Box<ExemplarCharacters>, DataError>
pub fn create_main( locale: &Locale, ) -> Result<Box<ExemplarCharacters>, DataError>
Create an ExemplarCharacters
for the “main” set of exemplar characters for a given locale, using compiled data.
sourcepub fn create_main_with_provider(
provider: &DataProvider,
locale: &Locale,
) -> Result<Box<ExemplarCharacters>, DataError>
pub fn create_main_with_provider( provider: &DataProvider, locale: &Locale, ) -> Result<Box<ExemplarCharacters>, DataError>
Create an ExemplarCharacters
for the “main” set of exemplar characters for a given locale, using a particular data source
sourcepub fn create_auxiliary(
locale: &Locale,
) -> Result<Box<ExemplarCharacters>, DataError>
pub fn create_auxiliary( locale: &Locale, ) -> Result<Box<ExemplarCharacters>, DataError>
Create an ExemplarCharacters
for the “auxiliary” set of exemplar characters for a given locale, using compiled data.
sourcepub fn create_auxiliary_with_provider(
provider: &DataProvider,
locale: &Locale,
) -> Result<Box<ExemplarCharacters>, DataError>
pub fn create_auxiliary_with_provider( provider: &DataProvider, locale: &Locale, ) -> Result<Box<ExemplarCharacters>, DataError>
Create an ExemplarCharacters
for the “auxiliary” set of exemplar characters for a given locale, using compiled data.
sourcepub fn create_punctuation(
locale: &Locale,
) -> Result<Box<ExemplarCharacters>, DataError>
pub fn create_punctuation( locale: &Locale, ) -> Result<Box<ExemplarCharacters>, DataError>
Create an ExemplarCharacters
for the “punctuation” set of exemplar characters for a given locale, using compiled data.
sourcepub fn create_punctuation_with_provider(
provider: &DataProvider,
locale: &Locale,
) -> Result<Box<ExemplarCharacters>, DataError>
pub fn create_punctuation_with_provider( provider: &DataProvider, locale: &Locale, ) -> Result<Box<ExemplarCharacters>, DataError>
Create an ExemplarCharacters
for the “punctuation” set of exemplar characters for a given locale, using compiled data.
sourcepub fn create_numbers(
locale: &Locale,
) -> Result<Box<ExemplarCharacters>, DataError>
pub fn create_numbers( locale: &Locale, ) -> Result<Box<ExemplarCharacters>, DataError>
Create an ExemplarCharacters
for the “index” set of exemplar characters for a given locale, using compiled data.
sourcepub fn create_numbers_with_provider(
provider: &DataProvider,
locale: &Locale,
) -> Result<Box<ExemplarCharacters>, DataError>
pub fn create_numbers_with_provider( provider: &DataProvider, locale: &Locale, ) -> Result<Box<ExemplarCharacters>, DataError>
Create an ExemplarCharacters
for the “index” set of exemplar characters for a given locale, using compiled data.
sourcepub fn create_index(
locale: &Locale,
) -> Result<Box<ExemplarCharacters>, DataError>
pub fn create_index( locale: &Locale, ) -> Result<Box<ExemplarCharacters>, DataError>
Create an ExemplarCharacters
for the “main” set of exemplar characters for a given locale, using compiled data.
sourcepub fn create_index_with_provider(
provider: &DataProvider,
locale: &Locale,
) -> Result<Box<ExemplarCharacters>, DataError>
pub fn create_index_with_provider( provider: &DataProvider, locale: &Locale, ) -> Result<Box<ExemplarCharacters>, DataError>
Create an ExemplarCharacters
for the “main” set of exemplar characters for a given locale, using compiled data.
Auto Trait Implementations§
impl Freeze for ExemplarCharacters
impl RefUnwindSafe for ExemplarCharacters
impl Send for ExemplarCharacters
impl Sync for ExemplarCharacters
impl Unpin for ExemplarCharacters
impl UnwindSafe for ExemplarCharacters
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