pub enum ValueArray<Int, const DIM: usize> {
Bool(ShapedArray<bool, DIM>),
Int(ShapedArray<Int, DIM>),
SetOfInt(ShapedArray<HashSet<Int>, DIM>),
}Expand description
The possible arrays of values.
DIM is either 1 or 2, depending on whether we have a 1 dimensional or 2-dimensional array.
Variants§
Trait Implementations§
Source§impl<Int: Clone, const DIM: usize> Clone for ValueArray<Int, DIM>
impl<Int: Clone, const DIM: usize> Clone for ValueArray<Int, DIM>
Source§fn clone(&self) -> ValueArray<Int, DIM>
fn clone(&self) -> ValueArray<Int, DIM>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Int, const DIM: usize> GetValue<ShapedArray<HashSet<Int>, DIM>> for ValueArray<Int, DIM>
impl<Int, const DIM: usize> GetValue<ShapedArray<HashSet<Int>, DIM>> for ValueArray<Int, DIM>
Source§impl<Int, const DIM: usize> GetValue<ShapedArray<Int, DIM>> for ValueArray<Int, DIM>
impl<Int, const DIM: usize> GetValue<ShapedArray<Int, DIM>> for ValueArray<Int, DIM>
Source§fn try_get(&self) -> Option<&ShapedArray<Int, DIM>>
fn try_get(&self) -> Option<&ShapedArray<Int, DIM>>
If the enum is
T, then return the value. Otherwise, return None.Source§impl<Int: Integer, const DIM: usize> GetValue<ShapedArray<bool, DIM>> for ValueArray<Int, DIM>
impl<Int: Integer, const DIM: usize> GetValue<ShapedArray<bool, DIM>> for ValueArray<Int, DIM>
Auto Trait Implementations§
impl<Int, const DIM: usize> Freeze for ValueArray<Int, DIM>
impl<Int, const DIM: usize> RefUnwindSafe for ValueArray<Int, DIM>where
Int: RefUnwindSafe,
impl<Int, const DIM: usize> Send for ValueArray<Int, DIM>where
Int: Send,
impl<Int, const DIM: usize> Sync for ValueArray<Int, DIM>where
Int: Sync,
impl<Int, const DIM: usize> Unpin for ValueArray<Int, DIM>where
Int: Unpin,
impl<Int, const DIM: usize> UnwindSafe for ValueArray<Int, DIM>where
Int: UnwindSafe,
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