pub struct ICU4XPropertyValueNameToEnumMapper(PropertyValueNameToEnumMapper<u16>);
Expand description
A type capable of looking up a property value from a string name.
Tuple Fields§
§0: PropertyValueNameToEnumMapper<u16>
Implementations§
source§impl ICU4XPropertyValueNameToEnumMapper
impl ICU4XPropertyValueNameToEnumMapper
sourcepub fn get_strict(&self, name: &DiplomatStr) -> i16
pub fn get_strict(&self, name: &DiplomatStr) -> i16
Get the property value matching the given name, using strict matching
Returns -1 if the name is unknown for this property
sourcepub fn get_loose(&self, name: &DiplomatStr) -> i16
pub fn get_loose(&self, name: &DiplomatStr) -> i16
Get the property value matching the given name, using loose matching
Returns -1 if the name is unknown for this property
pub fn load_general_category( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XPropertyValueNameToEnumMapper>, ICU4XError>
pub fn load_hangul_syllable_type( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XPropertyValueNameToEnumMapper>, ICU4XError>
pub fn load_east_asian_width( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XPropertyValueNameToEnumMapper>, ICU4XError>
pub fn load_bidi_class( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XPropertyValueNameToEnumMapper>, ICU4XError>
pub fn load_indic_syllabic_category( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XPropertyValueNameToEnumMapper>, ICU4XError>
pub fn load_line_break( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XPropertyValueNameToEnumMapper>, ICU4XError>
pub fn load_grapheme_cluster_break( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XPropertyValueNameToEnumMapper>, ICU4XError>
pub fn load_word_break( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XPropertyValueNameToEnumMapper>, ICU4XError>
pub fn load_sentence_break( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XPropertyValueNameToEnumMapper>, ICU4XError>
pub fn load_script( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XPropertyValueNameToEnumMapper>, ICU4XError>
Auto Trait Implementations§
impl Freeze for ICU4XPropertyValueNameToEnumMapper
impl RefUnwindSafe for ICU4XPropertyValueNameToEnumMapper
impl !Send for ICU4XPropertyValueNameToEnumMapper
impl !Sync for ICU4XPropertyValueNameToEnumMapper
impl Unpin for ICU4XPropertyValueNameToEnumMapper
impl UnwindSafe for ICU4XPropertyValueNameToEnumMapper
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