pub struct CellSet { /* private fields */ }Implementations§
Source§impl CellSet
impl CellSet
pub fn new() -> Self
pub fn from_bitset(bitset: u128) -> Self
pub fn from_cells(cell_positions: Vec<u8>) -> Self
pub fn is_empty(&self) -> bool
pub fn size(&self) -> usize
pub fn add(&mut self, cell: u8)
pub fn has(&self, cell: u8) -> bool
pub fn delete(&mut self, cell: u8)
pub fn clear(&mut self)
pub fn is_subset_of(&self, other: &Self) -> bool
pub fn union_multiple<'a>(iter: impl Iterator<Item = &'a Self>) -> Self
pub fn intersection_multiple<'a>(iter: impl Iterator<Item = &'a Self>) -> Self
pub fn iter(&self) -> Copied<Iter<'_, u8>>
pub fn to_string(&self, sudoku: &Sudoku) -> String
Trait Implementations§
Source§impl BitAnd<&CellSet> for &NamedCellSet
impl BitAnd<&CellSet> for &NamedCellSet
Source§impl BitAndAssign<&CellSet> for CellSet
impl BitAndAssign<&CellSet> for CellSet
Source§fn bitand_assign(&mut self, other: &CellSet)
fn bitand_assign(&mut self, other: &CellSet)
Performs the
&= operation. Read moreSource§impl BitOr<&CellSet> for &NamedCellSet
impl BitOr<&CellSet> for &NamedCellSet
Source§impl BitOrAssign<&CellSet> for CellSet
impl BitOrAssign<&CellSet> for CellSet
Source§fn bitor_assign(&mut self, other: &CellSet)
fn bitor_assign(&mut self, other: &CellSet)
Performs the
|= operation. Read moreSource§impl<'a> IntoIterator for &'a CellSet
impl<'a> IntoIterator for &'a CellSet
Source§impl SubAssign<&CellSet> for CellSet
impl SubAssign<&CellSet> for CellSet
Source§fn sub_assign(&mut self, other: &CellSet)
fn sub_assign(&mut self, other: &CellSet)
Performs the
-= operation. Read moreimpl Eq for CellSet
Auto Trait Implementations§
impl !Freeze for CellSet
impl !RefUnwindSafe for CellSet
impl Send for CellSet
impl !Sync for CellSet
impl Unpin for CellSet
impl UnwindSafe for CellSet
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more