pub struct WideState<const WORDS: usize> { /* private fields */ }Expand description
Fixed-width state used by wide user and general bases.
Implementations§
Source§impl<const WORDS: usize> WideState<WORDS>
impl<const WORDS: usize> WideState<WORDS>
pub const fn zero() -> Self
pub const fn capacity_bits() -> usize
pub fn from_words(words: [u64; WORDS]) -> Self
pub fn words(&self) -> &[u64; WORDS]
pub fn bit(&self, index: usize) -> Result<bool>
pub fn with_bit(self, index: usize, occupied: bool) -> Result<Self>
pub fn count_ones(&self) -> usize
pub fn count_ones_after(&self, index: usize) -> usize
pub fn has_bits_at_or_above(&self, index: usize) -> bool
pub fn bitwise_and(self, right: Self) -> Self
pub fn bitwise_or(self, right: Self) -> Self
pub fn bitwise_xor(self, right: Self) -> Self
pub fn bitwise_not(self) -> Self
pub fn left_shift(self, shift: usize) -> Self
pub fn right_shift(self, shift: usize) -> Self
Trait Implementations§
Source§impl<const WORDS: usize> BinaryState for WideState<WORDS>
impl<const WORDS: usize> BinaryState for WideState<WORDS>
Source§impl<const WORDS: usize> Ord for WideState<WORDS>
impl<const WORDS: usize> Ord for WideState<WORDS>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<const WORDS: usize> PartialEq for WideState<WORDS>
impl<const WORDS: usize> PartialEq for WideState<WORDS>
Source§impl<const WORDS: usize> PartialOrd for WideState<WORDS>
impl<const WORDS: usize> PartialOrd for WideState<WORDS>
Source§impl<const WORDS: usize> SymmetryMap<WideState<WORDS>> for LatticeSymmetryMap
impl<const WORDS: usize> SymmetryMap<WideState<WORDS>> for LatticeSymmetryMap
impl<const WORDS: usize> Copy for WideState<WORDS>
impl<const WORDS: usize> Eq for WideState<WORDS>
impl<const WORDS: usize> StructuralPartialEq for WideState<WORDS>
Auto Trait Implementations§
impl<const WORDS: usize> Freeze for WideState<WORDS>
impl<const WORDS: usize> RefUnwindSafe for WideState<WORDS>
impl<const WORDS: usize> Send for WideState<WORDS>
impl<const WORDS: usize> Sync for WideState<WORDS>
impl<const WORDS: usize> Unpin for WideState<WORDS>
impl<const WORDS: usize> UnsafeUnpin for WideState<WORDS>
impl<const WORDS: usize> UnwindSafe for WideState<WORDS>
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.