[−]Enum unic_ucd_category::GeneralCategory
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
fn eq(&self, other: &GeneralCategory) -> bool
#[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<__H: Hasher>(&self, state: &mut __H)
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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.
fn from_str(s: &str) -> Result<Self, Self::Err>
impl Clone for GeneralCategory
fn clone(&self) -> 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
fn prop_abbr_name() -> &'static str
fn prop_long_name() -> &'static str
fn prop_human_name() -> &'static str
impl TotalCharProperty for GeneralCategory
[src]
impl EnumeratedCharProperty for GeneralCategory
fn all_values() -> &'static [GeneralCategory]
fn abbr_name(&self) -> &'static str
fn long_name(&self) -> &'static str
fn human_name(&self) -> &'static str
Auto Trait Implementations
impl Send for GeneralCategory
impl Sync for GeneralCategory
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> PartialCharProperty for T where
T: TotalCharProperty,
[src]
T: TotalCharProperty,