[−][src]Struct pleco_engine::root_moves::root_moves_list::RootMoveList
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?
fn into_iter(self) -> Self::IntoIter
[src]
impl Send for RootMoveList
[src]
impl Sync for RootMoveList
[src]
impl Clone for RootMoveList
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Deref for RootMoveList
[src]
impl DerefMut for RootMoveList
[src]
impl Index<usize> for RootMoveList
[src]
type Output = RootMove
The returned type after indexing.
fn index(&self, index: usize) -> &RootMove
[src]
impl IndexMut<usize> for RootMoveList
[src]
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,