mirror of
https://git.intege.rs/xlib/x.git
synced 2025-12-05 20:35:01 +00:00
forgot to add a clear
This commit is contained in:
@@ -137,6 +137,10 @@ impl<const MAX_LEN: usize, T: Sized> FixedVec<MAX_LEN, T> {
|
||||
unsafe { core::slice::from_raw_parts(self.buffer.as_ptr() as *const T, self.length) }
|
||||
}
|
||||
|
||||
pub fn clear(&mut self) {
|
||||
self.length = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
impl<const MAX_LEN: usize, T: Debug> Debug for FixedVec<MAX_LEN, T> {
|
||||
|
||||
Reference in New Issue
Block a user