pub trait UnicodeGeneralCategory: Sized {
// Required method
fn general_category(self) -> GeneralCategory;
// Provided methods
fn general_category_group(self) -> GeneralCategoryGroup { ... }
fn is_letter_cased(self) -> bool { ... }
}
Expand description
Query the general category property of a character.
See General Category Values for more info.
Required Methods§
sourcefn general_category(self) -> GeneralCategory
fn general_category(self) -> GeneralCategory
Queries the most general classification of a character.
Provided Methods§
sourcefn general_category_group(self) -> GeneralCategoryGroup
fn general_category_group(self) -> GeneralCategoryGroup
Queries the grouping of the most general classification of a character.
sourcefn is_letter_cased(self) -> bool
fn is_letter_cased(self) -> bool
Queries whether the most general classification of a character belongs to the LetterCased
group
The LetterCased
group includes LetterUppercase
, LetterLowercase
, and LetterTitlecase
categories, and is a subset of the Letter
group.
Object Safety§
This trait is not object safe.