pub struct QualifiedGrid {
pub grid: Grid,
pub bg: Colour,
pub shapes: Shapes,
pub coloured_shapes: Shapes,
pub black: Shapes,
}Fields§
§grid: Grid§bg: Colour§shapes: Shapes§coloured_shapes: Shapes§black: ShapesImplementations§
Source§impl QualifiedGrid
impl QualifiedGrid
pub fn new(data: &[Vec<usize>]) -> Self
pub fn new_cons(data: &[Vec<usize>]) -> Self
pub fn trivial() -> Self
pub fn single_shape_count(&self) -> usize
pub fn colour_shape_count(&self) -> usize
pub fn has_bg_shape(&self) -> bool
pub fn has_bg_coloured_shape(&self) -> bool
Trait Implementations§
Source§impl Clone for QualifiedGrid
impl Clone for QualifiedGrid
Source§fn clone(&self) -> QualifiedGrid
fn clone(&self) -> QualifiedGrid
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 Debug for QualifiedGrid
impl Debug for QualifiedGrid
Source§impl PartialEq for QualifiedGrid
impl PartialEq for QualifiedGrid
impl StructuralPartialEq for QualifiedGrid
Auto Trait Implementations§
impl Freeze for QualifiedGrid
impl RefUnwindSafe for QualifiedGrid
impl Send for QualifiedGrid
impl Sync for QualifiedGrid
impl Unpin for QualifiedGrid
impl UnwindSafe for QualifiedGrid
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