[−][src]Struct pleco::core::move_list::ScoringMoveList
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]
fn push_mv(&mut self, mv: BitMove)
[src]
unsafe fn unchecked_push_mv(&mut self, mv: BitMove)
[src]
unsafe fn unchecked_set_len(&mut self, len: usize)
[src]
unsafe fn list_ptr(&mut self) -> *mut ScoringMove
[src]
unsafe fn over_bounds_ptr(&mut self) -> *mut ScoringMove
[src]
impl Into<Vec<ScoringMove>> for ScoringMoveList
[src]
fn into(self) -> Vec<ScoringMove>
[src]
impl Default for ScoringMoveList
[src]
impl From<ScoringMoveList> for MoveList
[src]
fn from(sc_list: ScoringMoveList) -> Self
[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?
fn into_iter(self) -> Self::IntoIter
[src]
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?
fn into_iter(self) -> Self::IntoIter
[src]
impl DerefMut for ScoringMoveList
[src]
fn deref_mut(&mut self) -> &mut [ScoringMove]
[src]
impl Deref for ScoringMoveList
[src]
type Target = [ScoringMove]
The resulting type after dereferencing.
fn deref(&self) -> &[ScoringMove]
[src]
impl Index<usize> for ScoringMoveList
[src]
type Output = ScoringMove
The returned type after indexing.
fn index(&self, index: usize) -> &ScoringMove
[src]
impl IndexMut<usize> for ScoringMoveList
[src]
fn index_mut(&mut self, index: usize) -> &mut ScoringMove
[src]
impl FromIterator<BitMove> for ScoringMoveList
[src]
fn from_iter<T: IntoIterator<Item = BitMove>>(iter: T) -> Self
[src]
Auto Trait Implementations
impl Send for ScoringMoveList
impl Sync for ScoringMoveList
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
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?
fn into_iter(self) -> I
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,