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

Adds a BitMove to the end of the list.

Safety

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

Adds a BitMove to the end of the list.

Safety

Undefined behavior if pushing to the list when MoveList::len() = 256.

Set the length of the list.

Safety

Unsafe due to overwriting the length of the list

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.

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