[][src]Struct bitboard_xo::xo_pos::XOPos

pub struct XOPos { /* fields omitted */ }

Methods

impl XOPos[src]

pub fn index(index: u32) -> Result<Self, XOPosError>[src]

pub fn row_col(row: u32, col: u32) -> Result<Self, XOPosError>[src]

pub fn col_row(col: u32, row: u32) -> Result<Self, XOPosError>[src]

pub fn as_index(self) -> u32[src]

Trait Implementations

impl Clone for XOPos[src]

impl Copy for XOPos[src]

impl Debug for XOPos[src]

impl TryFrom<u32> for XOPos[src]

type Error = XOPosError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Send for XOPos

impl Sync for XOPos

impl Unpin for XOPos

impl UnwindSafe for XOPos

impl RefUnwindSafe for XOPos

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, 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]