[][src]Struct goban::pieces::go_string::GoString

pub struct GoString {
    pub color: Color,
    // some fields omitted
}

Fields

color: Color

Implementations

impl GoString[src]

pub fn stones(&self) -> &AHashSet<usize>[src]

pub fn liberties(&self) -> &AHashSet<usize>[src]

impl GoString[src]

pub fn is_dead(&self) -> bool[src]

pub fn number_of_liberties(&self) -> usize[src]

pub fn is_atari(&self) -> bool[src]

pub fn contains_stone(&self, point: usize) -> bool[src]

pub fn contains_liberty(&self, point: usize) -> bool[src]

pub fn without_liberty(&self, point: usize) -> GoString[src]

pub fn with_liberty(&self, point: usize) -> GoString[src]

pub fn merge_with(
    self,
    GoString { color: color, stones: stones, liberties: liberties }: GoString
) -> Self
[src]

Takes ownership of self and the other string then merge into one string

Trait Implementations

impl Clone for GoString[src]

impl Debug for GoString[src]

impl Eq for GoString[src]

impl PartialEq<GoString> for GoString[src]

impl StructuralEq for GoString[src]

impl StructuralPartialEq for GoString[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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 = 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<V, T> VZip<V> for T where
    V: MultiLane<T>,