Struct icu_capi::casemap::ffi::TitlecaseMapper
source · pub struct TitlecaseMapper(pub TitlecaseMapper<CaseMapper>);
Tuple Fields§
§0: TitlecaseMapper<CaseMapper>
Implementations§
source§impl TitlecaseMapper
impl TitlecaseMapper
sourcepub fn create(
provider: &DataProvider,
) -> Result<Box<TitlecaseMapper>, DataError>
pub fn create( provider: &DataProvider, ) -> Result<Box<TitlecaseMapper>, DataError>
Construct a new TitlecaseMapper
instance
sourcepub fn titlecase_segment_v1(
&self,
s: &str,
locale: &Locale,
options: TitlecaseOptionsV1,
write: &mut DiplomatWrite,
)
pub fn titlecase_segment_v1( &self, s: &str, locale: &Locale, options: TitlecaseOptionsV1, write: &mut DiplomatWrite, )
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 TitlecaseMapper
impl RefUnwindSafe for TitlecaseMapper
impl Send for TitlecaseMapper
impl Sync for TitlecaseMapper
impl Unpin for TitlecaseMapper
impl UnwindSafe for TitlecaseMapper
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