pub struct BocHeaderCache<S> { /* private fields */ }Expand description
Preallocated BOC header indices cache.
Implementations§
Source§impl<S: BuildHasher + Default> BocHeaderCache<S>
impl<S: BuildHasher + Default> BocHeaderCache<S>
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Creates an empty preallocated revs cache of specified capacity.
Sourcepub fn rev_indices_capacity(&self) -> usize
pub fn rev_indices_capacity(&self) -> usize
Capacity of the underlying rev_indices cache.
Sourcepub fn rev_cells_capacity(&self) -> usize
pub fn rev_cells_capacity(&self) -> usize
Capacity of the underlying rev_cells cache.
Trait Implementations§
Source§impl<S: BuildHasher + Default> Default for BocHeaderCache<S>
impl<S: BuildHasher + Default> Default for BocHeaderCache<S>
Auto Trait Implementations§
impl<S> Freeze for BocHeaderCache<S>where
S: Freeze,
impl<S> !RefUnwindSafe for BocHeaderCache<S>
impl<S> Send for BocHeaderCache<S>where
S: Send,
impl<S> Sync for BocHeaderCache<S>where
S: Sync,
impl<S> Unpin for BocHeaderCache<S>where
S: Unpin,
impl<S> !UnwindSafe for BocHeaderCache<S>
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