pub struct NativeMask(/* private fields */);Expand description
Bitset over NativeTable indices, sized once at boot to
NativeTable::len(). Shared via Arc because attenuation clones the Cap
far more often than it clones the mask.
Implementations§
Source§impl NativeMask
impl NativeMask
pub fn empty(native_count: usize) -> Self
pub fn full(native_count: usize) -> Self
pub fn from_indices(native_count: usize, idxs: &[NativeIdx]) -> Self
pub fn word_len(&self) -> usize
pub fn allows(&self, idx: NativeIdx) -> bool
Sourcepub fn intersect(&self, requested: &NativeMask) -> NativeMask
pub fn intersect(&self, requested: &NativeMask) -> NativeMask
Attenuation primitive: result ⊆ self AND ⊆ requested, always. Bitwise AND — there is no OR path on this type.
Trait Implementations§
Source§impl Clone for NativeMask
impl Clone for NativeMask
Source§fn clone(&self) -> NativeMask
fn clone(&self) -> NativeMask
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NativeMask
impl Debug for NativeMask
impl Eq for NativeMask
Source§impl PartialEq for NativeMask
impl PartialEq for NativeMask
impl StructuralPartialEq for NativeMask
Auto Trait Implementations§
impl Freeze for NativeMask
impl RefUnwindSafe for NativeMask
impl Send for NativeMask
impl Sync for NativeMask
impl Unpin for NativeMask
impl UnsafeUnpin for NativeMask
impl UnwindSafe for NativeMask
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§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.