pub enum Levels {
Any,
Only(BTreeSet<EffortLevel>),
}Expand description
A set of levels. Any is a value, never an empty set: it is “no constraint”.
Variants§
Any
Only(BTreeSet<EffortLevel>)
Implementations§
Source§impl Levels
impl Levels
pub fn only(levels: impl IntoIterator<Item = EffortLevel>) -> Self
pub fn contains(&self, level: EffortLevel) -> bool
pub fn intersect(&self, other: &Levels) -> Levels
Trait Implementations§
impl Eq for Levels
impl StructuralPartialEq for Levels
Auto Trait Implementations§
impl Forget for Levels
impl Freeze for Levelswhere
*const LeafNode<EffortLevel, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(EffortLevel, SetValZST)>>: Freeze,
impl Move for Levels
impl RefUnwindSafe for Levels
impl Send for Levelswhere
NodeRef<Owned, EffortLevel, SetValZST, LeafOrInternal>: Send,
BoxRaw<(EffortLevel, SetValZST)>: Send,
impl Sync for Levelswhere
NodeRef<Owned, EffortLevel, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(EffortLevel, SetValZST)>: Sync,
impl Unpin for Levelswhere
*const LeafNode<EffortLevel, SetValZST> is !null: Unpin,
Box<(EffortLevel, SetValZST)>: Unpin,
impl UnsafeUnpin for Levelswhere
*const LeafNode<EffortLevel, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(EffortLevel, SetValZST)>>: UnsafeUnpin,
impl UnwindSafe for Levels
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.