[][src]Struct stelsalto::Board

pub struct Board { /* fields omitted */ }

Methods

impl Board[src]

pub fn new(config: Config) -> Self[src]

pub fn serialize(&self) -> Vec<String>[src]

pub fn draw(&self)[src]

pub fn take_turn(
    &mut self,
    points: Vec<Point>,
    player: Piece
) -> Result<(), GameError>
[src]

pub fn try_turn(
    &self,
    points: Vec<Point>,
    player: Piece
) -> Result<(), GameError>
[src]

pub fn get_piece(&self, point: Point) -> Option<Piece>[src]

pub fn move_piece(
    &mut self,
    source: Point,
    target: Point,
    player: Piece
) -> Result<(), GameError>
[src]

pub fn try_move_piece(
    &self,
    source: Point,
    target: Point,
    player: Piece
) -> Result<(), GameError>
[src]

Trait Implementations

impl PartialEq<Board> for Board[src]

impl Default for Board[src]

impl Clone for Board[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Board[src]

impl Debug for Board[src]

Auto Trait Implementations

impl Send for Board

impl Sync for Board

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]