pub struct Stats { /* private fields */ }
Expand description
Statistics on Llrb
tree. Serves two purpose:
- To get partial but quick statistics via
Llrb::stats
method. - To get full statisics via
Llrb::validate
method.
Implementations§
Source§impl Stats
impl Stats
Sourcepub fn node_size(&self) -> usize
pub fn node_size(&self) -> usize
Return node-size, including over-head for Llrb<k,V>
. Although
the node overhead is constant, the node size varies based on
key and value types. EG:
use llrb_index::Llrb;
let mut llrb: Llrb<u64,i128> = Llrb::new("myinstance");
// size of key: 8 bytes
// size of value: 16 bytes
// overhead is 24 bytes
assert_eq!(llrb.stats().node_size(), 48);
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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