pub trait Legality {
// Required method
fn gen_legal() -> bool;
}Expand description
Determines the if the moves generated are PseudoLegal or Legal moves.
PseudoLegal moves require that a move’s legality is determined before applying
to a Board.
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.