unicode_properties

Trait UnicodeGeneralCategory

source
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§

source

fn general_category(self) -> GeneralCategory

Queries the most general classification of a character.

Provided Methods§

source

fn general_category_group(self) -> GeneralCategoryGroup

Queries the grouping of the most general classification of a character.

source

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.

Implementations on Foreign Types§

source§

impl UnicodeGeneralCategory for char

Implementors§