pub struct ICU4XGeneralCategoryNameToMaskMapper(PropertyValueNameToEnumMapper<GeneralCategoryGroup>);Expand description
A type capable of looking up General Category mask values from a string name.
Tuple Fields§
§0: PropertyValueNameToEnumMapper<GeneralCategoryGroup>Implementations§
Source§impl ICU4XGeneralCategoryNameToMaskMapper
impl ICU4XGeneralCategoryNameToMaskMapper
Sourcepub fn get_strict(&self, name: &DiplomatStr) -> u32
pub fn get_strict(&self, name: &DiplomatStr) -> u32
Get the mask value matching the given name, using strict matching
Returns 0 if the name is unknown for this property
Sourcepub fn get_loose(&self, name: &DiplomatStr) -> u32
pub fn get_loose(&self, name: &DiplomatStr) -> u32
Get the mask value matching the given name, using loose matching
Returns 0 if the name is unknown for this property
pub fn load( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XGeneralCategoryNameToMaskMapper>, ICU4XError>
Auto Trait Implementations§
impl Freeze for ICU4XGeneralCategoryNameToMaskMapper
impl RefUnwindSafe for ICU4XGeneralCategoryNameToMaskMapper
impl !Send for ICU4XGeneralCategoryNameToMaskMapper
impl !Sync for ICU4XGeneralCategoryNameToMaskMapper
impl Unpin for ICU4XGeneralCategoryNameToMaskMapper
impl UnsafeUnpin for ICU4XGeneralCategoryNameToMaskMapper
impl UnwindSafe for ICU4XGeneralCategoryNameToMaskMapper
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