Struct icu_capi::casemap::ffi::ICU4XTitlecaseMapper
source · pub struct ICU4XTitlecaseMapper(pub TitlecaseMapper<CaseMapper>);
Tuple Fields§
§0: TitlecaseMapper<CaseMapper>
Implementations§
source§impl ICU4XTitlecaseMapper
impl ICU4XTitlecaseMapper
sourcepub fn create(
provider: &ICU4XDataProvider,
) -> Result<Box<ICU4XTitlecaseMapper>, ICU4XError>
pub fn create( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XTitlecaseMapper>, ICU4XError>
Construct a new ICU4XTitlecaseMapper
instance
sourcepub fn titlecase_segment_v1(
&self,
s: &DiplomatStr,
locale: &ICU4XLocale,
options: ICU4XTitlecaseOptionsV1,
write: &mut DiplomatWriteable,
) -> Result<(), ICU4XError>
pub fn titlecase_segment_v1( &self, s: &DiplomatStr, locale: &ICU4XLocale, options: ICU4XTitlecaseOptionsV1, write: &mut DiplomatWriteable, ) -> Result<(), ICU4XError>
Returns the full titlecase mapping of the given string
The v1
refers to the version of the options struct, which may change as we add more options
Auto Trait Implementations§
impl Freeze for ICU4XTitlecaseMapper
impl RefUnwindSafe for ICU4XTitlecaseMapper
impl !Send for ICU4XTitlecaseMapper
impl !Sync for ICU4XTitlecaseMapper
impl Unpin for ICU4XTitlecaseMapper
impl UnwindSafe for ICU4XTitlecaseMapper
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> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. 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