pub struct RestrictedMoves {
pub player: Player,
pub moves: Vec<Move>,
pub until_depth: u32,
}Expand description
A list of moves that are either forbidden with AnalysisRequest::avoid_moves or allowed with
AnalysisRequest::allow_moves.
Fields§
§player: PlayerThe player the move restriction applies to.
moves: Vec<Move>The list of moves.
until_depth: u32The search depth within which the restriction applies.
Implementations§
Source§impl RestrictedMoves
impl RestrictedMoves
Sourcepub fn into_engine_restricted_moves(self, height: u8) -> RestrictedMoves
pub fn into_engine_restricted_moves(self, height: u8) -> RestrictedMoves
Trait Implementations§
Source§impl Clone for RestrictedMoves
impl Clone for RestrictedMoves
Source§fn clone(&self) -> RestrictedMoves
fn clone(&self) -> RestrictedMoves
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RestrictedMoves
impl RefUnwindSafe for RestrictedMoves
impl Send for RestrictedMoves
impl Sync for RestrictedMoves
impl Unpin for RestrictedMoves
impl UnsafeUnpin for RestrictedMoves
impl UnwindSafe for RestrictedMoves
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more