pub enum GeneralCategory {
Show 30 variants
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,
}
Expand description
The most general classification of a character.
Variants§
UppercaseLetter
Lu
, an uppercase letter
LowercaseLetter
Ll
, a lowercase letter
TitlecaseLetter
Lt
, a digraphic character, with first part uppercase
ModifierLetter
Lm
, a modifier letter
OtherLetter
Lo
, other letters, including syllables and ideographs
NonspacingMark
Mn
, a nonspacing combining mark (zero advance width)
SpacingMark
Mc
, a spacing combining mark (positive advance width)
EnclosingMark
Me
, an enclosing combining mark
DecimalNumber
Nd
, a decimal digit
LetterNumber
Nl
, a letterlike numeric character
OtherNumber
No
, a numeric character of other type
ConnectorPunctuation
Pc
, a connecting punctuation mark, like a tie
DashPunctuation
Pd
, a dash or hyphen punctuation mark
OpenPunctuation
Ps
, an opening punctuation mark (of a pair)
ClosePunctuation
Pe
, a closing punctuation mark (of a pair)
InitialPunctuation
Pi
, an initial quotation mark
FinalPunctuation
Pf
, a final quotation mark
OtherPunctuation
Po
, a punctuation mark of other type
MathSymbol
Sm
, a symbol of mathematical use
CurrencySymbol
Sc
, a currency sign
ModifierSymbol
Sk
, a non-letterlike modifier symbol
OtherSymbol
So
, a symbol of other type
SpaceSeparator
Zs
, a space character (of various non-zero widths)
LineSeparator
Zl
, U+2028 LINE SEPARATOR only
ParagraphSeparator
Zp
, U+2029 PARAGRAPH SEPARATOR only
Control
Cc
, a C0 or C1 control code
Format
Cf
, a format control character
Surrogate
Cs
, a surrogate code point
PrivateUse
Co
, a private-use character
Unassigned
Cn
, a reserved unassigned code point or a noncharacter
Trait Implementations§
source§impl Clone for GeneralCategory
impl Clone for GeneralCategory
source§fn clone(&self) -> GeneralCategory
fn clone(&self) -> GeneralCategory
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GeneralCategory
impl Debug for GeneralCategory
source§impl Hash for GeneralCategory
impl Hash for GeneralCategory
source§impl Ord for GeneralCategory
impl Ord for GeneralCategory
source§fn cmp(&self, other: &GeneralCategory) -> Ordering
fn cmp(&self, other: &GeneralCategory) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for GeneralCategory
impl PartialEq for GeneralCategory
source§impl PartialOrd for GeneralCategory
impl PartialOrd for GeneralCategory
impl Copy for GeneralCategory
impl Eq for GeneralCategory
impl StructuralPartialEq for GeneralCategory
Auto Trait Implementations§
impl Freeze for GeneralCategory
impl RefUnwindSafe for GeneralCategory
impl Send for GeneralCategory
impl Sync for GeneralCategory
impl Unpin for GeneralCategory
impl UnwindSafe for GeneralCategory
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)