pub struct Arena {
pub hashes: Vec<u64>,
/* private fields */
}Fields§
§hashes: Vec<u64>Implementations§
Source§impl Arena
impl Arena
pub fn new(capacity: usize) -> Self
pub fn pop_free_slot(&mut self) -> Option<usize>
pub fn push_free_slot(&mut self, idx: usize)
pub fn free_list_empty(&self) -> bool
pub fn free_list_len(&self) -> usize
pub fn set_hash(&mut self, idx: usize, hash: u64)
pub fn get_hash(&self, idx: usize) -> u64
pub fn set_rank(&mut self, idx: usize, rank: u8)
pub fn get_rank(&self, idx: usize) -> u8
pub fn decrement_rank(&mut self, idx: usize)
pub fn count_sum(&self) -> u64
pub fn cursor(&self) -> usize
pub fn advance_cursor(&mut self)
pub fn clear(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Arena
impl RefUnwindSafe for Arena
impl Unpin for Arena
impl UnsafeUnpin for Arena
impl UnwindSafe for Arena
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more