[][src]Struct pleco_engine::root_moves::root_moves_list::RootMoveList

pub struct RootMoveList { /* fields omitted */ }

Methods

impl RootMoveList[src]

pub fn new() -> Self[src]

Creates an empty RootMoveList.

pub fn len(&self) -> usize[src]

Returns the length of the list.

pub fn clone_from_other(&mut self, other: &RootMoveList)[src]

Replaces the current RootMoveList with another RootMoveList.

pub fn replace(&mut self, moves: &MoveList)[src]

Replaces the current RootMoveList with the moves inside a MoveList.

pub fn rollback(&mut self)[src]

Applies RootMove::rollback() to each RootMove inside.

pub fn first(&mut self) -> &mut RootMove[src]

Returns the first RootMove in the list.

Safety

May return a nonsense RootMove if the list hasn't been initalized since the start.

pub fn to_list(&self) -> MoveList[src]

Converts to a MoveList.

pub fn prev_best_score(&self) -> i32[src]

Returns the previous best score.

pub fn insert_score_depth(&mut self, index: usize, score: i32, depth: i16)[src]

pub fn insert_score(&mut self, index: usize, score: i32)[src]

pub fn find(&mut self, mov: BitMove) -> Option<&mut RootMove>[src]

Trait Implementations

impl<'a> IntoIterator for &'a RootMoveList[src]

type Item = RootMove

The type of the elements being iterated over.

type IntoIter = MoveIter<'a>

Which kind of iterator are we turning this into?

impl Send for RootMoveList[src]

impl Sync for RootMoveList[src]

impl Clone for RootMoveList[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Deref for RootMoveList[src]

type Target = [RootMove]

The resulting type after dereferencing.

impl DerefMut for RootMoveList[src]

impl Index<usize> for RootMoveList[src]

type Output = RootMove

The returned type after indexing.

impl IndexMut<usize> for RootMoveList[src]

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]