Trait UnicodeCategories

Source
pub trait UnicodeCategories: Sized + Copy {
Show 35 methods // Required methods fn is_other_control(self) -> bool; fn is_other_format(self) -> bool; fn is_other_private_use(self) -> bool; fn is_letter_lowercase(self) -> bool; fn is_letter_modifier(self) -> bool; fn is_letter_other(self) -> bool; fn is_letter_titlecase(self) -> bool; fn is_letter_uppercase(self) -> bool; fn is_mark_spacing_combining(self) -> bool; fn is_mark_enclosing(self) -> bool; fn is_mark_nonspacing(self) -> bool; fn is_number_decimal_digit(self) -> bool; fn is_number_letter(self) -> bool; fn is_number_other(self) -> bool; fn is_punctuation_connector(self) -> bool; fn is_punctuation_dash(self) -> bool; fn is_punctuation_close(self) -> bool; fn is_punctuation_final_quote(self) -> bool; fn is_punctuation_initial_quote(self) -> bool; fn is_punctuation_other(self) -> bool; fn is_punctuation_open(self) -> bool; fn is_symbol_currency(self) -> bool; fn is_symbol_modifier(self) -> bool; fn is_symbol_math(self) -> bool; fn is_symbol_other(self) -> bool; fn is_separator_line(self) -> bool; fn is_separator_paragraph(self) -> bool; fn is_separator_space(self) -> bool; // Provided methods fn is_other(self) -> bool { ... } fn is_letter(self) -> bool { ... } fn is_mark(self) -> bool { ... } fn is_number(self) -> bool { ... } fn is_punctuation(self) -> bool { ... } fn is_symbol(self) -> bool { ... } fn is_separator(self) -> bool { ... }
}

Required Methods§

Source

fn is_other_control(self) -> bool

Returns true if this value is a member of the “Other, Control” (Cc) category.

Source

fn is_other_format(self) -> bool

Returns true if this value is a member of the “Other, Format” (Cf) category.

Source

fn is_other_private_use(self) -> bool

Returns true if this value is a member of the “Other, Private Use” (Co) category.

Source

fn is_letter_lowercase(self) -> bool

Returns true if this value is a member of the “Letter, Lowercase” (Ll) category.

Source

fn is_letter_modifier(self) -> bool

Returns true if this value is a member of the “Letter, Modifier” (Lm) category.

Source

fn is_letter_other(self) -> bool

Returns true if this value is a member of the “Letter, Other” (Lo) category.

Source

fn is_letter_titlecase(self) -> bool

Returns true if this value is a member of the “Letter, Titlecase” (Lt) category.

Source

fn is_letter_uppercase(self) -> bool

Returns true if this value is a member of the “Letter, Uppercase” (Lu) category.

Source

fn is_mark_spacing_combining(self) -> bool

Returns true if this value is a member of the “Mark, Spacing Combining” (Mc) category.

Source

fn is_mark_enclosing(self) -> bool

Returns true if this value is a member of the “Mark, Enclosing” (Me) category.

Source

fn is_mark_nonspacing(self) -> bool

Returns true if this value is a member of the “Mark, Nonspacing” (Mn) category.

Source

fn is_number_decimal_digit(self) -> bool

Returns true if this value is a member of the “Number, Decimal Digit” (Nd) category.

Source

fn is_number_letter(self) -> bool

Returns true if this value is a member of the “Number, Letter” (Nl) category.

Source

fn is_number_other(self) -> bool

Returns true if this value is a member of the “Number, Other” (No) category.

Source

fn is_punctuation_connector(self) -> bool

Returns true if this value is a member of the “Punctuation, Connector” (Pc) category.

Source

fn is_punctuation_dash(self) -> bool

Returns true if this value is a member of the “Punctuation, Dash” (Pd) category.

Source

fn is_punctuation_close(self) -> bool

Returns true if this value is a member of the “Punctuation, Close” (Pe) category.

Source

fn is_punctuation_final_quote(self) -> bool

Returns true if this value is a member of the “Punctuation, Final Quote” (Pf) category.

Source

fn is_punctuation_initial_quote(self) -> bool

Returns true if this value is a member of the “Punctuation, Initial Quote” (Pi) category.

Source

fn is_punctuation_other(self) -> bool

Returns true if this value is a member of the “Punctuation, Other” (Po) category.

Source

fn is_punctuation_open(self) -> bool

Returns true if this value is a member of the “Punctuation, Open” (Ps) category.

Source

fn is_symbol_currency(self) -> bool

Returns true if this value is a member of the “Symbol, Currency” (Sc) category.

Source

fn is_symbol_modifier(self) -> bool

Returns true if this value is a member of the “Symbol, Modifier” (Sk) category.

Source

fn is_symbol_math(self) -> bool

Returns true if this value is a member of the “Symbol, Math” (Sm) category.

Source

fn is_symbol_other(self) -> bool

Returns true if this value is a member of the “Symbol, Other” (So) category.

Source

fn is_separator_line(self) -> bool

Returns true if this value is a member of the “Separator, Line” (Zl) category.

Source

fn is_separator_paragraph(self) -> bool

Returns true if this value is a member of the “Separator, Paragraph” (Zp) category.

Source

fn is_separator_space(self) -> bool

Returns true if this value is a member of the “Separator, Space” (Zs) category.

Provided Methods§

Source

fn is_other(self) -> bool

Returns true if this value is a member of a “Other” category: Cc, Cf, Cn, or Co. Surrogates cannot be chars in Rust, so they are not included.

Source

fn is_letter(self) -> bool

Returns true if this value is a member of a “Letter” category: Lc, Ll, Lm, Lo, Lt, or Lu.

Source

fn is_mark(self) -> bool

Returns true if this value is a member of a “Mark” category: Mc, Me, or Mn.

Source

fn is_number(self) -> bool

Returns true if this value is a member of a “Number” category: Nd, Nl, or No.

Source

fn is_punctuation(self) -> bool

Returns true if this value is a member of a “Punctuation” category: Pc, Pd, Pe, Pf, Pi, Po, or Ps.

Source

fn is_symbol(self) -> bool

Returns true if this value is a member of a “Symbol” category: Sc, Sk, Sm, or So.

Source

fn is_separator(self) -> bool

Returns true if this value is a member of a “Separator” category: Zl, Zp, or Zs.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl UnicodeCategories for char

Implementors§