pub enum Symmetry {
None,
Rotational180,
Rotational90,
MirrorVertical,
MirrorHorizontal,
MirrorDiagonal,
}Expand description
Represents the type of symmetry to apply during board generation.
Variants§
None
No symmetry (clues placed randomly).
Rotational180
180-degree rotational (point) symmetry.
Rotational90
90-degree rotational symmetry.
MirrorVertical
Mirror symmetry across the vertical center line.
MirrorHorizontal
Mirror symmetry across the horizontal center line.
MirrorDiagonal
Mirror symmetry across the main diagonal (top-left to bottom-right).
Implementations§
Trait Implementations§
impl Copy for Symmetry
impl Eq for Symmetry
impl StructuralPartialEq for Symmetry
Auto Trait Implementations§
impl Freeze for Symmetry
impl RefUnwindSafe for Symmetry
impl Send for Symmetry
impl Sync for Symmetry
impl Unpin for Symmetry
impl UnsafeUnpin for Symmetry
impl UnwindSafe for Symmetry
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