Skip to main content

BitSet

Struct BitSet 

Source
pub struct BitSet<A, V>(/* private fields */);

Implementations§

Source§

impl<A: PrimStore, V> BitSet<A, V>

Source

pub const fn new() -> Self

Source

pub fn from_element(elem: V) -> Self
where V: AsPrimitive<usize>,

Source

pub fn into_bits(self) -> A

Source

pub fn union(&self, other: &A) -> BitSet<A, V>
where A: Copy + BitOr<Output = A>,

Source

pub fn difference(&self, other: &A) -> BitSet<A, V>
where A: Copy + BitAnd<Output = A> + Not<Output = A>,

Source

pub fn includes(&self, other: &A) -> bool
where A: Copy + BitAnd<Output = A> + PartialEq,

Source

pub fn iter(&self) -> PrimBitSetIter<A, V>
where A: PrimInt,

Snapshot iterator over set bit positions. Copies the raw bits, so the bitset can be mutated while iterating.

Source

pub fn load_store(&self) -> A
where A: Copy,

Source

pub fn swap_store(&mut self, store: &mut A)

Source

pub fn mut_store(&mut self, f: impl Fn(&mut A))

Source

pub fn drain(&mut self) -> PrimBitSetIter<A, V>
where A: PrimInt + Zero,

Source

pub fn union_from(&mut self, other: A)
where A: Copy + BitOrAssign<A>,

Source

pub fn set(&mut self, id: V, value: bool)
where V: AsPrimitive<usize>,

Source

pub fn insert(&mut self, id: V) -> bool
where V: AsPrimitive<usize>,

Source

pub fn remove(&mut self, id: V) -> bool
where V: AsPrimitive<usize>,

Source

pub fn toggle(&mut self, id: V)
where V: AsPrimitive<usize>,

Source§

impl<V> BitSet<u8, V>

Source

pub const fn from_bits(raw: u8) -> Self

Const constructor from raw bits.

Source

pub const fn bits(&self) -> u8

Raw bits accessor (const).

Source

pub const fn from_index(idx: usize) -> Self

Const constructor from a single bit index.

Source

pub const fn from_indices(indices: &[usize]) -> Self

Const constructor from a slice of bit indices.

Source

pub const fn len(&self) -> usize

Source

pub const fn is_empty(&self) -> bool

Source

pub const fn contains(&self, idx: &usize) -> bool

Const bit-index membership test.

Source

pub const fn is_subset(&self, other: &Self) -> bool

Source

pub const fn is_superset(&self, other: &Self) -> bool

Source

pub const fn is_disjoint(&self, other: &Self) -> bool

Source§

impl<V> BitSet<u16, V>

Source

pub const fn from_bits(raw: u16) -> Self

Const constructor from raw bits.

Source

pub const fn bits(&self) -> u16

Raw bits accessor (const).

Source

pub const fn from_index(idx: usize) -> Self

Const constructor from a single bit index.

Source

pub const fn from_indices(indices: &[usize]) -> Self

Const constructor from a slice of bit indices.

Source

pub const fn len(&self) -> usize

Source

pub const fn is_empty(&self) -> bool

Source

pub const fn contains(&self, idx: &usize) -> bool

Const bit-index membership test.

Source

pub const fn is_subset(&self, other: &Self) -> bool

Source

pub const fn is_superset(&self, other: &Self) -> bool

Source

pub const fn is_disjoint(&self, other: &Self) -> bool

Source§

impl<V> BitSet<u32, V>

Source

pub const fn from_bits(raw: u32) -> Self

Const constructor from raw bits.

Source

pub const fn bits(&self) -> u32

Raw bits accessor (const).

Source

pub const fn from_index(idx: usize) -> Self

Const constructor from a single bit index.

Source

pub const fn from_indices(indices: &[usize]) -> Self

Const constructor from a slice of bit indices.

Source

pub const fn len(&self) -> usize

Source

pub const fn is_empty(&self) -> bool

Source

pub const fn contains(&self, idx: &usize) -> bool

Const bit-index membership test.

Source

pub const fn is_subset(&self, other: &Self) -> bool

Source

pub const fn is_superset(&self, other: &Self) -> bool

Source

pub const fn is_disjoint(&self, other: &Self) -> bool

Source§

impl<V> BitSet<u64, V>

Source

pub const fn from_bits(raw: u64) -> Self

Const constructor from raw bits.

Source

pub const fn bits(&self) -> u64

Raw bits accessor (const).

Source

pub const fn from_index(idx: usize) -> Self

Const constructor from a single bit index.

Source

pub const fn from_indices(indices: &[usize]) -> Self

Const constructor from a slice of bit indices.

Source

pub const fn len(&self) -> usize

Source

pub const fn is_empty(&self) -> bool

Source

pub const fn contains(&self, idx: &usize) -> bool

Const bit-index membership test.

Source

pub const fn is_subset(&self, other: &Self) -> bool

Source

pub const fn is_superset(&self, other: &Self) -> bool

Source

pub const fn is_disjoint(&self, other: &Self) -> bool

Source§

impl<V> BitSet<u128, V>

Source

pub const fn from_bits(raw: u128) -> Self

Const constructor from raw bits.

Source

pub const fn bits(&self) -> u128

Raw bits accessor (const).

Source

pub const fn from_index(idx: usize) -> Self

Const constructor from a single bit index.

Source

pub const fn from_indices(indices: &[usize]) -> Self

Const constructor from a slice of bit indices.

Source

pub const fn len(&self) -> usize

Source

pub const fn is_empty(&self) -> bool

Source

pub const fn contains(&self, idx: &usize) -> bool

Const bit-index membership test.

Source

pub const fn is_subset(&self, other: &Self) -> bool

Source

pub const fn is_superset(&self, other: &Self) -> bool

Source

pub const fn is_disjoint(&self, other: &Self) -> bool

Source§

impl<V> BitSet<usize, V>

Source

pub const fn from_bits(raw: usize) -> Self

Const constructor from raw bits.

Source

pub const fn bits(&self) -> usize

Raw bits accessor (const).

Source

pub const fn from_index(idx: usize) -> Self

Const constructor from a single bit index.

Source

pub const fn from_indices(indices: &[usize]) -> Self

Const constructor from a slice of bit indices.

Source

pub const fn len(&self) -> usize

Source

pub const fn is_empty(&self) -> bool

Source

pub const fn contains(&self, idx: &usize) -> bool

Const bit-index membership test.

Source

pub const fn is_subset(&self, other: &Self) -> bool

Source

pub const fn is_superset(&self, other: &Self) -> bool

Source

pub const fn is_disjoint(&self, other: &Self) -> bool

Source§

impl<T: PrimStore, V, const N: usize> BitSet<[T; N], V>

Source

pub const fn new() -> Self

Source

pub const fn empty() -> Self

Source

pub fn from_bits(raw: [T; N]) -> Self

Source

pub fn from_element(id: V) -> Self
where T: PrimInt, V: AsPrimitive<usize>,

Source

pub fn into_bits(self) -> [T; N]

Source

pub fn is_subset(&self, other: &Self) -> bool
where T: Copy + BitAnd<Output = T> + PartialEq,

Source

pub fn is_superset(&self, other: &Self) -> bool
where T: Copy + BitAnd<Output = T> + PartialEq,

Source

pub fn is_disjoint(&self, other: &Self) -> bool
where T: Copy + BitAnd<Output = T> + Zero,

Source

pub fn as_slice(&self) -> &[T]

Source

pub fn as_mut_slice(&mut self) -> &mut [T]

Methods from Deref<Target = BitSlice<A, V>>§

Source

pub fn capacity(&self) -> usize

Source

pub fn len(&self) -> usize

Source

pub fn is_empty(&self) -> bool

Source

pub fn first(&self) -> Option<V>
where V: TryFrom<usize>,

Source

pub fn last(&self) -> Option<V>
where V: TryFrom<usize>,

Source

pub fn pop_first(&mut self) -> Option<V>
where V: TryFrom<usize>,

Source

pub fn pop_last(&mut self) -> Option<V>
where V: TryFrom<usize>,

Source

pub fn contains(&self, id: &V) -> bool
where V: Copy + AsPrimitive<usize>,

Source

pub fn set(&mut self, id: V, value: bool)
where V: AsPrimitive<usize>,

Source

pub fn insert(&mut self, id: V) -> bool
where V: AsPrimitive<usize>,

Source

pub fn remove(&mut self, id: V) -> bool
where V: AsPrimitive<usize>,

Source

pub fn toggle(&mut self, id: V)
where V: AsPrimitive<usize>,

Source

pub fn clear(&mut self)

Source

pub fn retain(&mut self, f: impl FnMut(V) -> bool)
where V: TryFrom<usize>,

Source

pub fn append(&mut self, other: &mut Self)

Source

pub fn iter(&self) -> BitSliceIter<'_, T, V>
where T: BitAndAssign, V: TryFrom<usize>,

Source

pub fn is_subset(&self, other: &Self) -> bool

Source

pub fn is_superset(&self, other: &Self) -> bool

Source

pub fn is_disjoint(&self, other: &Self) -> bool

Source

pub fn difference<'a>(&'a self, other: &'a Self) -> impl Iterator<Item = V> + 'a
where T: BitAndAssign, V: TryFrom<usize>,

Source

pub fn intersection<'a>( &'a self, other: &'a Self, ) -> impl Iterator<Item = V> + 'a
where T: BitAndAssign, V: TryFrom<usize>,

Source

pub fn union<'a>(&'a self, other: &'a Self) -> impl Iterator<Item = V> + 'a
where T: BitAndAssign, V: TryFrom<usize>,

Source

pub fn symmetric_difference<'a>( &'a self, other: &'a Self, ) -> impl Iterator<Item = V> + 'a
where T: BitAndAssign, V: TryFrom<usize>,

Source

pub fn raw_words(&self) -> &[T]

Raw word slice accessor.

Trait Implementations§

Source§

impl<A: PrimStore + Binary, V> Binary for BitSet<A, V>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T, V, const N: usize> BitAnd for BitSet<[T; N], V>
where T: PrimStore + BitAnd<Output = T> + Copy,

Source§

type Output = BitSet<[T; N], V>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self

Performs the & operation. Read more
Source§

impl<A: PrimStore + Copy + BitAnd<Output = A>, V> BitAnd for BitSet<A, V>

Source§

type Output = BitSet<A, V>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self

Performs the & operation. Read more
Source§

impl<T, V, const N: usize> BitAndAssign for BitSet<[T; N], V>

Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl<A: PrimStore + BitAndAssign, V> BitAndAssign for BitSet<A, V>

Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl<T, V, const N: usize> BitOr for BitSet<[T; N], V>
where T: PrimStore + BitOr<Output = T> + Copy,

Source§

type Output = BitSet<[T; N], V>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl<A: PrimStore + Copy + BitOr<Output = A>, V> BitOr for BitSet<A, V>

Source§

type Output = BitSet<A, V>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl<T, V, const N: usize> BitOrAssign for BitSet<[T; N], V>
where T: PrimStore + BitOrAssign + Copy,

Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl<A: PrimStore + BitOrAssign, V> BitOrAssign for BitSet<A, V>

Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl<T, V, const N: usize> BitXor for BitSet<[T; N], V>
where T: PrimStore + BitXor<Output = T> + Copy,

Source§

type Output = BitSet<[T; N], V>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self

Performs the ^ operation. Read more
Source§

impl<A: PrimStore + Copy + BitXor<Output = A>, V> BitXor for BitSet<A, V>

Source§

type Output = BitSet<A, V>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self

Performs the ^ operation. Read more
Source§

impl<T, V, const N: usize> BitXorAssign for BitSet<[T; N], V>

Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl<A: PrimStore + BitXorAssign, V> BitXorAssign for BitSet<A, V>

Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl<A: Clone, V: Clone> Clone for BitSet<A, V>

Source§

fn clone(&self) -> BitSet<A, V>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: PrimInt, V, const N: usize> Debug for BitSet<[T; N], V>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<A: PrimStore, V> Debug for BitSet<A, V>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: PrimStore, V, const N: usize> Default for BitSet<[T; N], V>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<A: PrimStore, V> Default for BitSet<A, V>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<T, V, const N: usize> Deref for BitSet<[T; N], V>

Source§

type Target = BitSlice<T, V>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<A: PrimStore, V> Deref for BitSet<A, V>

Source§

type Target = BitSlice<A, V>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<T, V, const N: usize> DerefMut for BitSet<[T; N], V>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<A: PrimStore, V> DerefMut for BitSet<A, V>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<T: PrimStore + BitOrAssign + Copy, V, const N: usize> Extend<BitSet<[T; N], V>> for BitSet<[T; N], V>

Source§

fn extend<I: IntoIterator<Item = Self>>(&mut self, iter: I)

Extends a collection with the contents of an iterator. Read more
Source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
Source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
Source§

impl<A: PrimStore + BitOrAssign + Copy, V> Extend<BitSet<A, V>> for BitSet<A, V>

Source§

fn extend<I: IntoIterator<Item = Self>>(&mut self, iter: I)

Extends a collection with the contents of an iterator. Read more
Source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
Source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
Source§

impl<T: PrimStore, V: AsPrimitive<usize>, const N: usize> Extend<V> for BitSet<[T; N], V>

Source§

fn extend<I: IntoIterator<Item = V>>(&mut self, iter: I)

Extends a collection with the contents of an iterator. Read more
Source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
Source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
Source§

impl<A: Copy + PrimStore, V: AsPrimitive<usize>> Extend<V> for BitSet<A, V>

Source§

fn extend<I: IntoIterator<Item = V>>(&mut self, iter: I)

Extends a collection with the contents of an iterator. Read more
Source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
Source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
Source§

impl<T: PrimStore + BitOrAssign + Copy, V, const N: usize> FromIterator<BitSet<[T; N], V>> for BitSet<[T; N], V>

Source§

fn from_iter<I: IntoIterator<Item = Self>>(iter: I) -> Self

Creates a value from an iterator. Read more
Source§

impl<A: PrimStore + BitOrAssign + Copy, V> FromIterator<BitSet<A, V>> for BitSet<A, V>

Source§

fn from_iter<I: IntoIterator<Item = Self>>(iter: I) -> Self

Creates a value from an iterator. Read more
Source§

impl<T: PrimStore, V: AsPrimitive<usize>, const N: usize> FromIterator<V> for BitSet<[T; N], V>

Source§

fn from_iter<I: IntoIterator<Item = V>>(iter: I) -> Self

Creates a value from an iterator. Read more
Source§

impl<A: Copy + PrimStore, V: AsPrimitive<usize>> FromIterator<V> for BitSet<A, V>

Source§

fn from_iter<T: IntoIterator<Item = V>>(iter: T) -> Self

Creates a value from an iterator. Read more
Source§

impl<T: Hash, V, const N: usize> Hash for BitSet<[T; N], V>

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<A: PrimStore + Hash, V> Hash for BitSet<A, V>

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<'a, T: PrimInt + BitAndAssign, V: TryFrom<usize>, const N: usize> IntoIterator for &'a BitSet<[T; N], V>

Source§

type Item = V

The type of the elements being iterated over.
Source§

type IntoIter = BitSliceIter<'a, T, V>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'a, A: PrimStore + BitAndAssign, V: TryFrom<usize>> IntoIterator for &'a BitSet<A, V>

Source§

type Item = V

The type of the elements being iterated over.
Source§

type IntoIter = BitSliceIter<'a, A, V>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<A, V> IntoIterator for BitSet<A, V>
where A: PrimInt + BitAndAssign<A> + PrimStore, V: TryFrom<u8>,

Source§

type Item = V

The type of the elements being iterated over.
Source§

type IntoIter = PrimBitSetIter<A, V>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<A: PrimStore + LowerHex, V> LowerHex for BitSet<A, V>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T, V, const N: usize> Not for BitSet<[T; N], V>
where T: PrimStore + Not<Output = T> + Copy,

Source§

type Output = BitSet<[T; N], V>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self

Performs the unary ! operation. Read more
Source§

impl<A: PrimStore + Copy + Not<Output = A>, V> Not for BitSet<A, V>

Source§

type Output = BitSet<A, V>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self

Performs the unary ! operation. Read more
Source§

impl<A: PrimStore + Octal, V> Octal for BitSet<A, V>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<A: PrimStore + Ord, V> Ord for BitSet<A, V>

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<T: PartialEq, V, const N: usize> PartialEq for BitSet<[T; N], V>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<A: PrimStore + PartialEq, V> PartialEq for BitSet<A, V>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<A: PrimStore + Ord, V> PartialOrd for BitSet<A, V>

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<T, V, const N: usize> Sub for BitSet<[T; N], V>
where T: PrimStore + BitAnd<Output = T> + Not<Output = T> + Copy,

Source§

type Output = BitSet<[T; N], V>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self

Performs the - operation. Read more
Source§

impl<A, V> Sub for BitSet<A, V>
where A: PrimStore + Copy + BitAnd<Output = A> + Not<Output = A>,

Source§

type Output = BitSet<A, V>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self

Performs the - operation. Read more
Source§

impl<T, V, const N: usize> SubAssign for BitSet<[T; N], V>
where T: PrimStore + Copy + Not<Output = T> + BitAndAssign,

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl<A, V> SubAssign for BitSet<A, V>
where A: PrimStore + Copy + BitAndAssign + Not<Output = A>,

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl<A: PrimStore + UpperHex, V> UpperHex for BitSet<A, V>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<A: Copy, V: Copy> Copy for BitSet<A, V>

Source§

impl<T: Eq, V, const N: usize> Eq for BitSet<[T; N], V>

Source§

impl<A: PrimStore + Eq, V> Eq for BitSet<A, V>

Auto Trait Implementations§

§

impl<A, V> Freeze for BitSet<A, V>
where A: Freeze,

§

impl<A, V> RefUnwindSafe for BitSet<A, V>

§

impl<A, V> Send for BitSet<A, V>
where A: Send, V: Send,

§

impl<A, V> Sync for BitSet<A, V>
where A: Sync, V: Sync,

§

impl<A, V> Unpin for BitSet<A, V>
where A: Unpin, V: Unpin,

§

impl<A, V> UnsafeUnpin for BitSet<A, V>
where A: UnsafeUnpin,

§

impl<A, V> UnwindSafe for BitSet<A, V>
where A: UnwindSafe, V: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.