pub enum ESExprTagSet {
All,
Tags(&'static [ESExprTag<'static>]),
Concat(&'static [ESExprTagSet]),
}
Expand description
A set of tags. Used over standard collections to support const operations.
Variants§
All
The set of all tags.
Tags(&'static [ESExprTag<'static>])
A collection of tags.
Concat(&'static [ESExprTagSet])
A compound collection of tags.
Implementations§
Source§impl ESExprTagSet
impl ESExprTagSet
Sourcepub const fn contains(self, tag: &ESExprTag<'_>) -> bool
pub const fn contains(self, tag: &ESExprTag<'_>) -> bool
Check if a tag collection contains a tag.
Sourcepub const fn is_disjoint(self, other: ESExprTagSet) -> bool
pub const fn is_disjoint(self, other: ESExprTagSet) -> bool
Check if a tag collection is disjoint from another tag collection.
Sourcepub const fn is_subset(self, other: ESExprTagSet) -> bool
pub const fn is_subset(self, other: ESExprTagSet) -> bool
Check if a tag collection is a subset of another tag collection.
Sourcepub const fn is_equal(self, other: ESExprTagSet) -> bool
pub const fn is_equal(self, other: ESExprTagSet) -> bool
Check if a tag collection is equal to another tag collection.
Trait Implementations§
Source§impl Clone for ESExprTagSet
impl Clone for ESExprTagSet
Source§fn clone(&self) -> ESExprTagSet
fn clone(&self) -> ESExprTagSet
Returns a duplicate 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 ESExprTagSet
impl Debug for ESExprTagSet
Source§impl PartialEq for ESExprTagSet
impl PartialEq for ESExprTagSet
impl Copy for ESExprTagSet
impl Eq for ESExprTagSet
Auto Trait Implementations§
impl Freeze for ESExprTagSet
impl RefUnwindSafe for ESExprTagSet
impl Send for ESExprTagSet
impl Sync for ESExprTagSet
impl Unpin for ESExprTagSet
impl UnwindSafe for ESExprTagSet
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