pub struct GeneralCategoryNameToGroupMapper(/* private fields */);
Expand description
A type capable of looking up General Category Group values from a string name.
Implementations§
Source§impl GeneralCategoryNameToGroupMapper
impl GeneralCategoryNameToGroupMapper
Sourcepub fn get_strict(&self, name: &DiplomatStr) -> GeneralCategoryGroup
pub fn get_strict(&self, name: &DiplomatStr) -> GeneralCategoryGroup
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) -> GeneralCategoryGroup
pub fn get_loose(&self, name: &DiplomatStr) -> GeneralCategoryGroup
Get the mask value matching the given name, using loose matching
Returns 0 if the name is unknown for this property
Sourcepub fn create() -> Box<GeneralCategoryNameToGroupMapper>
pub fn create() -> Box<GeneralCategoryNameToGroupMapper>
Create a name-to-mask mapper for the General_Category
property, using compiled data.
Sourcepub fn create_with_provider(
provider: &DataProvider,
) -> Result<Box<GeneralCategoryNameToGroupMapper>, DataError>
pub fn create_with_provider( provider: &DataProvider, ) -> Result<Box<GeneralCategoryNameToGroupMapper>, DataError>
Create a name-to-mask mapper for the General_Category
property, using a particular data source.
Auto Trait Implementations§
impl Freeze for GeneralCategoryNameToGroupMapper
impl RefUnwindSafe for GeneralCategoryNameToGroupMapper
impl Send for GeneralCategoryNameToGroupMapper
impl Sync for GeneralCategoryNameToGroupMapper
impl Unpin for GeneralCategoryNameToGroupMapper
impl UnwindSafe for GeneralCategoryNameToGroupMapper
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