Skip to main content

ColorTrait

Trait ColorTrait 

Source
pub trait ColorTrait {
    // Required methods
    fn turn_fen(self) -> String;
    fn inverse(self) -> Color;
}
Expand description

ColorTrait defines methods for Color

Required Methods§

Source

fn turn_fen(self) -> String

returns the color fen string

Source

fn inverse(self) -> Color

returns inverse of color

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ColorTrait for Color

ColorTrait implementation