#[repr(u8)]
pub enum GeneralCategory {
Show 30 variants
UppercaseLetter,
LowercaseLetter,
TitlecaseLetter,
ModifierLetter,
OtherLetter,
NonspacingMark,
SpacingCombiningMark,
EnclosingMark,
DecimalDigitNumber,
LetterNumber,
OtherNumber,
ConnectorPunctuation,
DashPunctuation,
OpenPunctuation,
ClosePunctuation,
InitialQuotePunctuation,
FinalQuotePunctuation,
OtherPunctuation,
MathSymbol,
CurrencySymbol,
ModifierSymbol,
OtherSymbol,
SpaceSeparator,
LineSeparator,
ParagraphSeparator,
ControlOther,
FormatOther,
SurrogateOther,
PrivateUseOther,
NotAssignedOther,
}
Variants
UppercaseLetter
LowercaseLetter
TitlecaseLetter
ModifierLetter
OtherLetter
NonspacingMark
SpacingCombiningMark
EnclosingMark
DecimalDigitNumber
LetterNumber
OtherNumber
ConnectorPunctuation
DashPunctuation
OpenPunctuation
ClosePunctuation
InitialQuotePunctuation
FinalQuotePunctuation
OtherPunctuation
MathSymbol
CurrencySymbol
ModifierSymbol
OtherSymbol
SpaceSeparator
LineSeparator
ParagraphSeparator
ControlOther
FormatOther
SurrogateOther
PrivateUseOther
NotAssignedOther
Implementations
Trait Implementations
sourceimpl Clone for GeneralCategory
impl Clone for GeneralCategory
sourcefn clone(&self) -> GeneralCategory
fn clone(&self) -> GeneralCategory
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl From<char> for GeneralCategory
impl From<char> for GeneralCategory
sourceimpl PartialEq<GeneralCategory> for GeneralCategory
impl PartialEq<GeneralCategory> for GeneralCategory
sourcefn eq(&self, other: &GeneralCategory) -> bool
fn eq(&self, other: &GeneralCategory) -> bool
sourceimpl ToString for GeneralCategory
impl ToString for GeneralCategory
sourceimpl<'a> TryFrom<&'a str> for GeneralCategory
impl<'a> TryFrom<&'a str> for GeneralCategory
sourceimpl TryFrom<u8> for GeneralCategory
impl TryFrom<u8> for GeneralCategory
type Error = TryFromPrimitiveError<GeneralCategory>
type Error = TryFromPrimitiveError<GeneralCategory>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for GeneralCategory
impl TryFromPrimitive for GeneralCategory
type Primitive = u8
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for GeneralCategory
impl StructuralPartialEq for GeneralCategory
Auto Trait Implementations
impl RefUnwindSafe for GeneralCategory
impl Send for GeneralCategory
impl Sync for GeneralCategory
impl Unpin for GeneralCategory
impl UnwindSafe for GeneralCategory
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more