Struct unicode_intervals::UnicodeCategorySet
source · pub struct UnicodeCategorySet(_);Expand description
Set of Unicode categories.
Implementations§
source§impl UnicodeCategorySet
impl UnicodeCategorySet
sourcepub fn add_category(&mut self, category: UnicodeCategory)
pub fn add_category(&mut self, category: UnicodeCategory)
Add a new Unicode category to the set.
sourcepub const fn has_category(self, category: UnicodeCategory) -> bool
pub const fn has_category(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
§type Output = UnicodeCategorySet
type Output = UnicodeCategorySet
The resulting type after applying the
| operator.source§impl BitOr<UnicodeCategorySet> for UnicodeCategory
impl BitOr<UnicodeCategorySet> for UnicodeCategory
§type Output = UnicodeCategorySet
type Output = UnicodeCategorySet
The resulting type after applying the
| operator.source§impl BitOr<UnicodeCategorySet> for UnicodeCategorySet
impl BitOr<UnicodeCategorySet> for UnicodeCategorySet
§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<UnicodeCategorySet> for UnicodeCategorySet
impl BitOrAssign<UnicodeCategorySet> 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 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 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<UnicodeCategorySet> for UnicodeCategorySet
impl PartialEq<UnicodeCategorySet> for UnicodeCategorySet
source§fn eq(&self, other: &UnicodeCategorySet) -> bool
fn eq(&self, other: &UnicodeCategorySet) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for UnicodeCategorySet
impl Eq for UnicodeCategorySet
impl StructuralEq for UnicodeCategorySet
impl StructuralPartialEq for UnicodeCategorySet
Auto Trait Implementations§
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