Struct gomoku_core::Axes
[−]
[src]
pub struct Axes<T>(_);
Represent all the 4 axes.
Methods
impl<T> Axes<T>
[src]
fn new(vert: T, diag_up: T, hori: T, diag_down: T) -> Axes<T>
fn vertical(&self) -> &T
fn diagonal_up(&self) -> &T
fn horizontal(&self) -> &T
fn diagonal_down(&self) -> &T
fn count<P>(&self, predicate: P) -> usize where
P: FnMut(&T) -> bool,
P: FnMut(&T) -> bool,
fn any<P>(&self, predicate: P) -> bool where
P: FnMut(&T) -> bool,
P: FnMut(&T) -> bool,
impl<T: Default> Axes<T>
[src]
fn new_horizontal(axis: T) -> Axes<T>
fn new_diagonal_up(axis: T) -> Axes<T>
fn new_vertical(axis: T) -> Axes<T>
fn new_diagonal_down(axis: T) -> Axes<T>
Trait Implementations
impl<T: Debug> Debug for Axes<T>
[src]
impl<T: PartialEq> PartialEq for Axes<T>
[src]
fn eq(&self, other: &Axes<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<T> From<[T; 4]> for Axes<T>
[src]
impl<T> Deref for Axes<T>
[src]
type Target = [T; 4]
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value