#[repr(C)]pub struct GeneralCategoryGroup {
pub mask: u32,
}
Expand description
A mask that is capable of representing groups of General_Category
values.
Fields§
§mask: u32
Implementations§
Source§impl GeneralCategoryGroup
impl GeneralCategoryGroup
pub fn contains(self, val: GeneralCategory) -> bool
pub fn complement(self) -> Self
pub fn all() -> Self
pub fn empty() -> Self
pub fn union(self, other: Self) -> Self
pub fn intersection(self, other: Self) -> Self
pub fn cased_letter() -> Self
pub fn letter() -> Self
pub fn mark() -> Self
pub fn number() -> Self
pub fn separator() -> Self
pub fn other() -> Self
pub fn punctuation() -> Self
pub fn symbol() -> Self
Trait Implementations§
Source§impl Default for GeneralCategoryGroup
impl Default for GeneralCategoryGroup
Source§fn default() -> GeneralCategoryGroup
fn default() -> GeneralCategoryGroup
Returns the “default value” for a type. Read more
Source§impl From<GeneralCategoryGroup> for GeneralCategoryGroup
impl From<GeneralCategoryGroup> for GeneralCategoryGroup
Source§fn from(other: GeneralCategoryGroup) -> Self
fn from(other: GeneralCategoryGroup) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GeneralCategoryGroup
impl RefUnwindSafe for GeneralCategoryGroup
impl Send for GeneralCategoryGroup
impl Sync for GeneralCategoryGroup
impl Unpin for GeneralCategoryGroup
impl UnwindSafe for GeneralCategoryGroup
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> 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