pub struct UnicodeCategorySet(/* private fields */);
Expand description
Set of Unicode categories.
Implementations§
Source§impl UnicodeCategorySet
impl UnicodeCategorySet
Sourcepub fn add(&mut self, category: UnicodeCategory)
pub fn add(&mut self, category: UnicodeCategory)
Add a new Unicode category to the set.
Sourcepub fn remove(&mut self, category: UnicodeCategory)
pub fn remove(&mut self, category: UnicodeCategory)
Remove a Unicode category from the set.
Sourcepub const fn contains(self, category: UnicodeCategory) -> bool
pub const fn contains(self, category: UnicodeCategory) -> bool
Whether the set contains category
.
Sourcepub const fn into_value(self) -> u32
pub const fn into_value(self) -> u32
Extract the inner storage value.
Trait Implementations§
Source§impl BitOr<UnicodeCategory> for UnicodeCategorySet
impl BitOr<UnicodeCategory> for UnicodeCategorySet
Source§type Output = UnicodeCategorySet
type Output = UnicodeCategorySet
The resulting type after applying the
|
operator.Source§impl BitOr<UnicodeCategorySet> for UnicodeCategory
impl BitOr<UnicodeCategorySet> for UnicodeCategory
Source§type Output = UnicodeCategorySet
type Output = UnicodeCategorySet
The resulting type after applying the
|
operator.Source§impl BitOr for UnicodeCategorySet
impl BitOr for UnicodeCategorySet
Source§type Output = UnicodeCategorySet
type Output = UnicodeCategorySet
The resulting type after applying the
|
operator.Source§impl BitOrAssign<UnicodeCategory> for UnicodeCategorySet
impl BitOrAssign<UnicodeCategory> for UnicodeCategorySet
Source§fn bitor_assign(&mut self, rhs: UnicodeCategory)
fn bitor_assign(&mut self, rhs: UnicodeCategory)
Performs the
|=
operation. Read moreSource§impl BitOrAssign for UnicodeCategorySet
impl BitOrAssign for UnicodeCategorySet
Source§fn bitor_assign(&mut self, rhs: UnicodeCategorySet)
fn bitor_assign(&mut self, rhs: UnicodeCategorySet)
Performs the
|=
operation. Read moreSource§impl Clone for UnicodeCategorySet
impl Clone for UnicodeCategorySet
Source§fn clone(&self) -> UnicodeCategorySet
fn clone(&self) -> UnicodeCategorySet
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UnicodeCategorySet
impl Debug for UnicodeCategorySet
Source§impl Default for UnicodeCategorySet
impl Default for UnicodeCategorySet
Source§impl Display for UnicodeCategorySet
impl Display for UnicodeCategorySet
Source§impl From<UnicodeCategory> for UnicodeCategorySet
impl From<UnicodeCategory> for UnicodeCategorySet
Source§fn from(category: UnicodeCategory) -> Self
fn from(category: UnicodeCategory) -> Self
Converts to this type from the input type.
Source§impl Hash for UnicodeCategorySet
impl Hash for UnicodeCategorySet
Source§impl PartialEq for UnicodeCategorySet
impl PartialEq for UnicodeCategorySet
impl Copy for UnicodeCategorySet
impl Eq for UnicodeCategorySet
impl StructuralPartialEq for UnicodeCategorySet
Auto Trait Implementations§
impl Freeze for UnicodeCategorySet
impl RefUnwindSafe for UnicodeCategorySet
impl Send for UnicodeCategorySet
impl Sync for UnicodeCategorySet
impl Unpin for UnicodeCategorySet
impl UnwindSafe for UnicodeCategorySet
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