Struct Goban

Source
pub struct Goban { /* private fields */ }

Implementations§

Source§

impl Goban

Source

pub fn from_sgf( sgf: &str, node_description: &NodeDescription, ) -> Result<Self, GobanError>

Source

pub fn stones(&self) -> impl Iterator<Item = Stone> + '_

Source

pub fn stones_before_move( &self, move_number: u64, ) -> Box<dyn Iterator<Item = Stone> + '_>

Source

pub fn stone_color(&self, x: u8, y: u8) -> Option<StoneColor>

Source

pub fn moves(&self) -> impl Iterator<Item = (u64, Stone)> + '_

Source

pub fn hoshi_points(&self) -> impl Iterator<Item = (u8, u8)>

Source

pub fn size(&self) -> (u8, u8)

Source

pub fn marks(&self) -> impl Iterator<Item = (u8, u8)> + '_

Source

pub fn triangles(&self) -> impl Iterator<Item = (u8, u8)> + '_

Source

pub fn circles(&self) -> impl Iterator<Item = (u8, u8)> + '_

Source

pub fn squares(&self) -> impl Iterator<Item = (u8, u8)> + '_

Source

pub fn selected(&self) -> impl Iterator<Item = (u8, u8)> + '_

Source

pub fn dimmed(&self) -> impl Iterator<Item = (u8, u8)> + '_

Source

pub fn lines(&self) -> impl Iterator<Item = ((u8, u8), (u8, u8))> + '_

Source

pub fn arrows(&self) -> impl Iterator<Item = ((u8, u8), (u8, u8))> + '_

Source

pub fn labels(&self) -> impl Iterator<Item = (&(u8, u8), &String)>

Auto Trait Implementations§

§

impl Freeze for Goban

§

impl RefUnwindSafe for Goban

§

impl Send for Goban

§

impl Sync for Goban

§

impl Unpin for Goban

§

impl UnwindSafe for Goban

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.