implemented method clear for struct MoveBuffer
This commit is contained in:
@@ -20,6 +20,10 @@ impl MoveBuffer {
|
||||
self.buffer[self.count] = bitmove;
|
||||
self.count += 1;
|
||||
}
|
||||
#[inline]
|
||||
pub fn clear(&mut self) {
|
||||
self.count = 0;
|
||||
}
|
||||
#[inline(always)]
|
||||
pub fn count(&self) -> usize{
|
||||
return self.count;
|
||||
|
||||
Reference in New Issue
Block a user