[]Enum unic_ucd_category::GeneralCategory

pub enum GeneralCategory {
    UppercaseLetter,
    LowercaseLetter,
    TitlecaseLetter,
    ModifierLetter,
    OtherLetter,
    NonspacingMark,
    SpacingMark,
    EnclosingMark,
    DecimalNumber,
    LetterNumber,
    OtherNumber,
    ConnectorPunctuation,
    DashPunctuation,
    OpenPunctuation,
    ClosePunctuation,
    InitialPunctuation,
    FinalPunctuation,
    OtherPunctuation,
    MathSymbol,
    CurrencySymbol,
    ModifierSymbol,
    OtherSymbol,
    SpaceSeparator,
    LineSeparator,
    ParagraphSeparator,
    Control,
    Format,
    Surrogate,
    PrivateUse,
    Unassigned,
}

Represents the Unicode Character General_Category property.

This is a useful breakdown into various character types which can be used as a default categorization in implementations. For the property values, see General_Category Values.

Variants

UppercaseLetter

An uppercase letter

LowercaseLetter

A lowercase letter

TitlecaseLetter

A digraphic character, with first part uppercase

ModifierLetter

A modifier letter

OtherLetter

Other letters, including syllables and ideographs

NonspacingMark

A nonspacing combining mark (zero advance width)

SpacingMark

A spacing combining mark (positive advance width)

EnclosingMark

An enclosing combining mark

DecimalNumber

A decimal digit

LetterNumber

A letterlike numeric character

OtherNumber

A numeric character of other type

ConnectorPunctuation

A connecting punctuation mark, like a tie

DashPunctuation

A dash or hyphen punctuation mark

OpenPunctuation

An opening punctuation mark (of a pair)

ClosePunctuation

A closing punctuation mark (of a pair)

InitialPunctuation

An initial quotation mark

FinalPunctuation

A final quotation mark

OtherPunctuation

A punctuation mark of other type

MathSymbol

A symbol of mathematical use

CurrencySymbol

A currency sign

ModifierSymbol

A non-letterlike modifier symbol

OtherSymbol

A symbol of other type

SpaceSeparator

A space character (of various non-zero widths)

LineSeparator

U+2028 LINE SEPARATOR only

ParagraphSeparator

U+2029 PARAGRAPH SEPARATOR only

Control

A C0 or C1 control code

Format

A format control character

Surrogate

A surrogate code point

PrivateUse

A private-use character

Unassigned

Unassigned

Methods

impl GeneralCategory[src]

pub fn of(ch: char) -> GeneralCategory[src]

Find the GeneralCategory of a single char.

impl GeneralCategory[src]

pub fn is_cased_letter(&self) -> bool[src]

Lu | Ll | Lt (Short form: LC)

pub fn is_letter(&self) -> bool[src]

Lu | Ll | Lt | Lm | Lo (Short form: L)

pub fn is_mark(&self) -> bool[src]

Mn | Mc | Me (Short form: M)

pub fn is_number(&self) -> bool[src]

Nd | Nl | No (Short form: N)

pub fn is_punctuation(&self) -> bool[src]

Pc | Pd | Ps | Pe | Pi | Pf | Po (Short form: P)

pub fn is_symbol(&self) -> bool[src]

Sm | Sc | Sk | So (Short form: S)

pub fn is_separator(&self) -> bool[src]

Zs | Zl | Zp (Short form: Z)

pub fn is_other(&self) -> bool[src]

Cc | Cf | Cs | Co | Cn (Short form: C)

Trait Implementations

impl PartialEq<GeneralCategory> for GeneralCategory

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Eq for GeneralCategory

impl Display for GeneralCategory

impl Debug for GeneralCategory

impl Hash for GeneralCategory

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Copy for GeneralCategory

impl FromStr for GeneralCategory

type Err = ()

The associated error which can be returned from parsing.

impl Clone for GeneralCategory

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for GeneralCategory[src]

impl CharProperty for GeneralCategory

impl TotalCharProperty for GeneralCategory[src]

impl EnumeratedCharProperty for GeneralCategory

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> PartialCharProperty for T where
    T: TotalCharProperty
[src]