pub struct PropertyValueNameToEnumMapper(/* private fields */);
Expand description
A type capable of looking up a property value from a string name.
Implementations§
source§impl PropertyValueNameToEnumMapper
impl PropertyValueNameToEnumMapper
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: &DataProvider, ) -> Result<Box<PropertyValueNameToEnumMapper>, DataError>
pub fn load_hangul_syllable_type( provider: &DataProvider, ) -> Result<Box<PropertyValueNameToEnumMapper>, DataError>
pub fn load_east_asian_width( provider: &DataProvider, ) -> Result<Box<PropertyValueNameToEnumMapper>, DataError>
pub fn load_bidi_class( provider: &DataProvider, ) -> Result<Box<PropertyValueNameToEnumMapper>, DataError>
pub fn load_indic_syllabic_category( provider: &DataProvider, ) -> Result<Box<PropertyValueNameToEnumMapper>, DataError>
pub fn load_line_break( provider: &DataProvider, ) -> Result<Box<PropertyValueNameToEnumMapper>, DataError>
pub fn load_grapheme_cluster_break( provider: &DataProvider, ) -> Result<Box<PropertyValueNameToEnumMapper>, DataError>
pub fn load_word_break( provider: &DataProvider, ) -> Result<Box<PropertyValueNameToEnumMapper>, DataError>
pub fn load_sentence_break( provider: &DataProvider, ) -> Result<Box<PropertyValueNameToEnumMapper>, DataError>
pub fn load_script( provider: &DataProvider, ) -> Result<Box<PropertyValueNameToEnumMapper>, DataError>
Auto Trait Implementations§
impl Freeze for PropertyValueNameToEnumMapper
impl RefUnwindSafe for PropertyValueNameToEnumMapper
impl Send for PropertyValueNameToEnumMapper
impl Sync for PropertyValueNameToEnumMapper
impl Unpin for PropertyValueNameToEnumMapper
impl UnwindSafe for PropertyValueNameToEnumMapper
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