added getter for field count in struct MoveBuffer

This commit is contained in:
Varga Dávid Lajos
2025-11-19 15:50:03 +01:00
parent dc176c103b
commit 4e7ac2a195

View File

@@ -14,9 +14,14 @@ impl MoveBuffer {
count: 0
};
}
#[inline]
pub fn add(&mut self, bitmove: BitMove) {
self.buffer[self.count] = bitmove;
self.count += 1;
}
#[inline(always)]
pub fn count(&self) -> usize{
return self.count;
}
}