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§
sourcefn is_other_control(self) -> bool
fn is_other_control(self) -> bool
Returns true
if this value is a member
of the “Other, Control” (Cc) category.
sourcefn is_other_format(self) -> bool
fn is_other_format(self) -> bool
Returns true
if this value is a member
of the “Other, Format” (Cf) category.
sourcefn is_other_private_use(self) -> bool
fn is_other_private_use(self) -> bool
Returns true if this value is a member of the “Other, Private Use” (Co) category.
sourcefn is_letter_lowercase(self) -> bool
fn is_letter_lowercase(self) -> bool
Returns true if this value is a member of the “Letter, Lowercase” (Ll) category.
sourcefn is_letter_modifier(self) -> bool
fn is_letter_modifier(self) -> bool
Returns true if this value is a member of the “Letter, Modifier” (Lm) category.
sourcefn is_letter_other(self) -> bool
fn is_letter_other(self) -> bool
Returns true if this value is a member of the “Letter, Other” (Lo) category.
sourcefn is_letter_titlecase(self) -> bool
fn is_letter_titlecase(self) -> bool
Returns true if this value is a member of the “Letter, Titlecase” (Lt) category.
sourcefn is_letter_uppercase(self) -> bool
fn is_letter_uppercase(self) -> bool
Returns true if this value is a member of the “Letter, Uppercase” (Lu) category.
sourcefn is_mark_spacing_combining(self) -> bool
fn is_mark_spacing_combining(self) -> bool
Returns true if this value is a member of the “Mark, Spacing Combining” (Mc) category.
sourcefn is_mark_enclosing(self) -> bool
fn is_mark_enclosing(self) -> bool
Returns true if this value is a member of the “Mark, Enclosing” (Me) category.
sourcefn is_mark_nonspacing(self) -> bool
fn is_mark_nonspacing(self) -> bool
Returns true if this value is a member of the “Mark, Nonspacing” (Mn) category.
sourcefn is_number_decimal_digit(self) -> bool
fn is_number_decimal_digit(self) -> bool
Returns true if this value is a member of the “Number, Decimal Digit” (Nd) category.
sourcefn is_number_letter(self) -> bool
fn is_number_letter(self) -> bool
Returns true if this value is a member of the “Number, Letter” (Nl) category.
sourcefn is_number_other(self) -> bool
fn is_number_other(self) -> bool
Returns true if this value is a member of the “Number, Other” (No) category.
sourcefn is_punctuation_connector(self) -> bool
fn is_punctuation_connector(self) -> bool
Returns true if this value is a member of the “Punctuation, Connector” (Pc) category.
sourcefn is_punctuation_dash(self) -> bool
fn is_punctuation_dash(self) -> bool
Returns true if this value is a member of the “Punctuation, Dash” (Pd) category.
sourcefn is_punctuation_close(self) -> bool
fn is_punctuation_close(self) -> bool
Returns true if this value is a member of the “Punctuation, Close” (Pe) category.
sourcefn is_punctuation_final_quote(self) -> bool
fn is_punctuation_final_quote(self) -> bool
Returns true if this value is a member of the “Punctuation, Final Quote” (Pf) category.
sourcefn is_punctuation_initial_quote(self) -> bool
fn is_punctuation_initial_quote(self) -> bool
Returns true if this value is a member of the “Punctuation, Initial Quote” (Pi) category.
sourcefn is_punctuation_other(self) -> bool
fn is_punctuation_other(self) -> bool
Returns true if this value is a member of the “Punctuation, Other” (Po) category.
sourcefn is_punctuation_open(self) -> bool
fn is_punctuation_open(self) -> bool
Returns true if this value is a member of the “Punctuation, Open” (Ps) category.
sourcefn is_symbol_currency(self) -> bool
fn is_symbol_currency(self) -> bool
Returns true if this value is a member of the “Symbol, Currency” (Sc) category.
sourcefn is_symbol_modifier(self) -> bool
fn is_symbol_modifier(self) -> bool
Returns true if this value is a member of the “Symbol, Modifier” (Sk) category.
sourcefn is_symbol_math(self) -> bool
fn is_symbol_math(self) -> bool
Returns true if this value is a member of the “Symbol, Math” (Sm) category.
sourcefn is_symbol_other(self) -> bool
fn is_symbol_other(self) -> bool
Returns true if this value is a member of the “Symbol, Other” (So) category.
sourcefn is_separator_line(self) -> bool
fn is_separator_line(self) -> bool
Returns true if this value is a member of the “Separator, Line” (Zl) category.
sourcefn is_separator_paragraph(self) -> bool
fn is_separator_paragraph(self) -> bool
Returns true if this value is a member of the “Separator, Paragraph” (Zp) category.
sourcefn is_separator_space(self) -> bool
fn is_separator_space(self) -> bool
Returns true if this value is a member of the “Separator, Space” (Zs) category.
Provided Methods§
sourcefn is_other(self) -> bool
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.
sourcefn is_letter(self) -> bool
fn is_letter(self) -> bool
Returns true if this value is a member of a “Letter” category: Lc, Ll, Lm, Lo, Lt, or Lu.
sourcefn is_mark(self) -> bool
fn is_mark(self) -> bool
Returns true if this value is a member of a “Mark” category: Mc, Me, or Mn.
sourcefn is_number(self) -> bool
fn is_number(self) -> bool
Returns true if this value is a member of a “Number” category: Nd, Nl, or No.
sourcefn is_punctuation(self) -> bool
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.
sourcefn is_symbol(self) -> bool
fn is_symbol(self) -> bool
Returns true if this value is a member of a “Symbol” category: Sc, Sk, Sm, or So.
sourcefn is_separator(self) -> bool
fn is_separator(self) -> bool
Returns true if this value is a member of a “Separator” category: Zl, Zp, or Zs.