[][src]Struct bitboard_xo::XO

pub struct XO { /* fields omitted */ }

Methods

impl XO[src]

pub fn new() -> Self[src]

pub fn make_move(
    &mut self,
    xo_pos: impl XOPos
) -> XOResult<Option<XOTokenWinState>>
[src]

pub fn push_move(&mut self, index: u32) -> XOResult<Option<XOTokenWinState>>[src]

Deprecated since 0.1.1:

use make_move instate

pub fn swap_turn(&mut self)[src]

pub fn reset(&mut self)[src]

pub fn iter(&self) -> BoardIter[src]

pub fn board(&self) -> XOBoard[src]

pub fn board_mut(&mut self) -> &mut XOBoard[src]

pub fn turn(&self) -> XOToken[src]

Trait Implementations

impl Clone for XO[src]

impl Default for XO[src]

impl Debug for XO[src]

impl Display for XO[src]

Auto Trait Implementations

impl Send for XO

impl Sync for XO

impl Unpin for XO

impl UnwindSafe for XO

impl RefUnwindSafe for XO

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = !

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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