Legality

Trait Legality 

Source
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§

Returns if the only legal moves should be generated.

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.

Implementors§