[][src]Struct pleco::core::move_list::ScoringMoveList

pub struct ScoringMoveList { /* fields omitted */ }

This is similar to a MoveList, but also keeps the scores for each move as well.

Methods

impl ScoringMoveList[src]

pub fn push(&mut self, mov: BitMove)[src]

Adds a BitMove to the end of the list.

Safety

If pushing to the list when at capacity, does nothing.

pub fn is_empty(&self) -> bool[src]

Returns true if empty.

pub fn vec(&self) -> Vec<ScoringMove>[src]

Creates a vector from this MoveList.

pub fn push_score(&mut self, mov: BitMove, score: i16)[src]

Pushes a BitMove and a score to the list.

Unlike a normal score, which is a i32, the score pushed is of a type i16.

pub unsafe fn push_score_unchecked(&mut self, mov: BitMove, score: i16)[src]

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

Returns the number of moves inside the list.

pub fn as_slice(&self) -> &[ScoringMove][src]

Returns the ScoringMoveList as a slice.

pub fn as_mut_slice(&mut self) -> &mut [ScoringMove][src]

Returns the ScoringMoveList as a mutable slice.

Trait Implementations

impl MVPushable for ScoringMoveList[src]

impl Into<Vec<ScoringMove>> for ScoringMoveList[src]

impl Default for ScoringMoveList[src]

impl From<ScoringMoveList> for MoveList[src]

impl From<Vec<BitMove>> for ScoringMoveList[src]

impl From<MoveList> for ScoringMoveList[src]

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

type Item = ScoringMove

The type of the elements being iterated over.

type IntoIter = ScoreMoveIter<'a>

Which kind of iterator are we turning this into?

impl IntoIterator for ScoringMoveList[src]

type Item = ScoringMove

The type of the elements being iterated over.

type IntoIter = ScoreMoveIntoIter

Which kind of iterator are we turning this into?

impl DerefMut for ScoringMoveList[src]

impl Deref for ScoringMoveList[src]

type Target = [ScoringMove]

The resulting type after dereferencing.

impl Index<usize> for ScoringMoveList[src]

type Output = ScoringMove

The returned type after indexing.

impl IndexMut<usize> for ScoringMoveList[src]

impl FromIterator<BitMove> for ScoringMoveList[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.