Trait pleco::core::move_list::MVPushable [−][src]
pub trait MVPushable: Sized + IndexMut<usize> + Index<usize> + DerefMut { fn push_mv(&mut self, mv: BitMove); unsafe fn unchecked_push_mv(&mut self, mv: BitMove); unsafe fn unchecked_set_len(&mut self, len: usize); unsafe fn list_ptr(&mut self) -> *mut Self::Output; unsafe fn over_bounds_ptr(&mut self) -> *mut Self::Output; }
Required Methods
fn push_mv(&mut self, mv: BitMove)
Adds a BitMove
to the end of the list.
Safety
If pushing to the list when at capacity, does nothing.
unsafe fn unchecked_push_mv(&mut self, mv: BitMove)
Adds a BitMove
to the end of the list.
Safety
Undefined behavior if pushing to the list when MoveList::len() = 256
.
unsafe fn unchecked_set_len(&mut self, len: usize)
unsafe fn list_ptr(&mut self) -> *mut Self::Output
Return a pointer to the first (0-th index) element in the list
Safety
Unsafe due to allow modification of elements possibly not inside the length.
unsafe fn over_bounds_ptr(&mut self) -> *mut Self::Output
Return a pointer to the element next to the last element in the list
Safety
Unsafe due to allow modification of elements possibly not inside the length.
Implementors
impl MVPushable for MoveList
impl MVPushable for ScoringMoveList