Enum sudokugen::board::BoardSize [−][src]
Represents the size of the board that sudukogen can work with. Currently only 4x4, 9x9, and 16x16 boards are allowed.
Variants
A board with 16 cells, in a 4 by 4 square
A board with 81 cells, in a 9 by 9 square
A board with 337 cells, in a 16 by 16 square
Implementations
impl BoardSize
[src]
pub fn get_base_size(&self) -> usize
[src]
A sudoku board is a square of N by N squares, each of them composed of N by N cells the base size of a board is N. For instance in a 9 by 9 board, composed of 3 by 3 squares, each of them composed of 3 by 3 cells, the base size is 3.
Trait Implementations
impl Clone for BoardSize
[src]
impl Copy for BoardSize
[src]
impl Debug for BoardSize
[src]
impl Eq for BoardSize
[src]
impl PartialEq<BoardSize> for BoardSize
[src]
fn eq(&self, other: &BoardSize) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for BoardSize
[src]
impl StructuralPartialEq for BoardSize
[src]
Auto Trait Implementations
impl RefUnwindSafe for BoardSize
impl Send for BoardSize
impl Sync for BoardSize
impl Unpin for BoardSize
impl UnwindSafe for BoardSize
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,