pub struct ClassSet(/* private fields */);Expand description
A set of PaintClasses, as a bitmask — which class programs one pass
needs, so a frame resolves exactly those pipelines and no others.
Implementations§
Source§impl ClassSet
impl ClassSet
Sourcepub const fn only(class: PaintClass) -> Self
pub const fn only(class: PaintClass) -> Self
The set holding class alone.
Sourcepub fn insert(&mut self, class: PaintClass)
pub fn insert(&mut self, class: PaintClass)
Adds class.
Sourcepub const fn contains(self, class: PaintClass) -> bool
pub const fn contains(self, class: PaintClass) -> bool
Whether class is in the set.
Sourcepub fn iter(self) -> impl Iterator<Item = PaintClass>
pub fn iter(self) -> impl Iterator<Item = PaintClass>
The classes in the set, in PaintClass::ALL order.
Trait Implementations§
impl Copy for ClassSet
impl Eq for ClassSet
impl StructuralPartialEq for ClassSet
Auto Trait Implementations§
impl Freeze for ClassSet
impl RefUnwindSafe for ClassSet
impl Send for ClassSet
impl Sync for ClassSet
impl Unpin for ClassSet
impl UnsafeUnpin for ClassSet
impl UnwindSafe for ClassSet
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.