pub trait Move<B: Board<Self, T>, T: Turn>:
Sized
+ Clone
+ Eq {
// Required method
fn play(&self, board: &mut B, turn: T);
}Expand description
A trait to be implemented on a representation of a move
If this were chess this would be (a more complex version of) a start position and an end position
Required Methods§
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.