[][src]Struct sudokul::board::NanoBoard

pub struct NanoBoard { /* fields omitted */ }

NanoBoard is a Board implementation that focuses on reducing memory usage, at the cost of access performance. Each board requires only 41 bytes of memory.

A typical Sudoku board has 81 entries, each ranging from 1-9, plus a "blank" signal (which sudokul represents as 0). Using an array of u8s, the NanoBoard packs two entries into every u8, with the final entry getting the entire u8 to itself.

Methods

impl NanoBoard[src]

pub fn new() -> NanoBoard[src]

Trait Implementations

impl Board for NanoBoard[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]