Symmetry

Trait Symmetry 

Source
pub trait Symmetry<const N: usize>: Sized {
    // Required method
    fn symmetries(&self) -> [Self; 8];
}

Required Methods§

Source

fn symmetries(&self) -> [Self; 8]

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<const N: usize> Symmetry<N> for Direction

Source§

fn symmetries(&self) -> [Self; 8]

Source§

impl<const N: usize> Symmetry<N> for Move

Source§

fn symmetries(&self) -> [Self; 8]

Source§

impl<const N: usize> Symmetry<N> for Square

Source§

fn symmetries(&self) -> [Self; 8]

Implementors§

Source§

impl<const N: usize> Symmetry<N> for Board<N>

Source§

impl<const N: usize, const HALF_KOMI: i8> Symmetry<N> for Game<N, HALF_KOMI>