pub struct OptBits(/* private fields */);Expand description
A set of optimizations, one bit per Opt (its discriminant), in as many 64-bit words as the registry
needs. OptimizationConfig keeps the enabled set in one and FiredOptimizations the fired set, in the
same layout, so the two relate bit for bit.
Implementations§
Source§impl OptBits
impl OptBits
Sourcepub const fn intersection(self, other: OptBits) -> Self
pub const fn intersection(self, other: OptBits) -> Self
The optimizations in both sets.
Sourcepub const fn difference(self, other: OptBits) -> Self
pub const fn difference(self, other: OptBits) -> Self
The optimizations in this set and not in other.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OptBits
impl<'de> Deserialize<'de> for OptBits
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for OptBits
impl Eq for OptBits
impl StructuralPartialEq for OptBits
Auto Trait Implementations§
impl Freeze for OptBits
impl RefUnwindSafe for OptBits
impl Send for OptBits
impl Sync for OptBits
impl Unpin for OptBits
impl UnsafeUnpin for OptBits
impl UnwindSafe for OptBits
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.