Enum icu_capi::properties_enums::ffi::GeneralCategory
source · #[repr(C)]pub enum GeneralCategory {
Show 30 variants
Unassigned = 0,
UppercaseLetter = 1,
LowercaseLetter = 2,
TitlecaseLetter = 3,
ModifierLetter = 4,
OtherLetter = 5,
NonspacingMark = 6,
SpacingMark = 8,
EnclosingMark = 7,
DecimalNumber = 9,
LetterNumber = 10,
OtherNumber = 11,
SpaceSeparator = 12,
LineSeparator = 13,
ParagraphSeparator = 14,
Control = 15,
Format = 16,
PrivateUse = 17,
Surrogate = 18,
DashPunctuation = 19,
OpenPunctuation = 20,
ClosePunctuation = 21,
ConnectorPunctuation = 22,
InitialPunctuation = 28,
FinalPunctuation = 29,
OtherPunctuation = 23,
MathSymbol = 24,
CurrencySymbol = 25,
ModifierSymbol = 26,
OtherSymbol = 27,
}
Variants§
Unassigned = 0
UppercaseLetter = 1
LowercaseLetter = 2
TitlecaseLetter = 3
ModifierLetter = 4
OtherLetter = 5
NonspacingMark = 6
SpacingMark = 8
EnclosingMark = 7
DecimalNumber = 9
LetterNumber = 10
OtherNumber = 11
SpaceSeparator = 12
LineSeparator = 13
ParagraphSeparator = 14
Control = 15
Format = 16
PrivateUse = 17
Surrogate = 18
DashPunctuation = 19
OpenPunctuation = 20
ClosePunctuation = 21
ConnectorPunctuation = 22
InitialPunctuation = 28
FinalPunctuation = 29
OtherPunctuation = 23
MathSymbol = 24
CurrencySymbol = 25
ModifierSymbol = 26
OtherSymbol = 27
Implementations§
source§impl GeneralCategory
impl GeneralCategory
pub fn to_integer(self) -> u8
pub fn from_integer(other: u8) -> Option<Self>
Trait Implementations§
source§impl Clone for GeneralCategory
impl Clone for GeneralCategory
source§fn clone(&self) -> GeneralCategory
fn clone(&self) -> GeneralCategory
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl From<GeneralCategory> for GeneralCategory
impl From<GeneralCategory> for GeneralCategory
source§fn from(other: GeneralCategory) -> Self
fn from(other: GeneralCategory) -> Self
Converts to this type from the input type.
source§impl From<GeneralCategory> for GeneralCategory
impl From<GeneralCategory> for GeneralCategory
source§fn from(this: GeneralCategory) -> Self
fn from(this: GeneralCategory) -> Self
Converts to this type from the input type.
impl Copy 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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more