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 Levels
impl Move for Levels
impl RefUnwindSafe for Levels
impl Send for Levels
impl Sync for Levels
impl Unpin for Levels
impl UnsafeUnpin for Levels
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.