pub struct MapletStats {
pub capacity: usize,
pub len: usize,
pub load_factor: f64,
pub false_positive_rate: f64,
pub memory_usage: usize,
pub num_collisions: u64,
pub slots_used: usize,
pub avg_chain_length: f64,
}
Expand description
Statistics for a maplet
Fields§
§capacity: usize
Current capacity of the maplet
len: usize
Current number of items stored
load_factor: f64
Load factor (len / capacity)
false_positive_rate: f64
Configured false-positive rate
memory_usage: usize
Estimated memory usage in bytes
num_collisions: u64
Number of hash collisions encountered
slots_used: usize
Number of slots used in the filter
avg_chain_length: f64
Average chain length for collision resolution
Implementations§
Trait Implementations§
Source§impl Clone for MapletStats
impl Clone for MapletStats
Source§fn clone(&self) -> MapletStats
fn clone(&self) -> MapletStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MapletStats
impl Debug for MapletStats
Source§impl<'de> Deserialize<'de> for MapletStats
impl<'de> Deserialize<'de> for MapletStats
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MapletStats, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MapletStats, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for MapletStats
impl Serialize for MapletStats
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for MapletStats
impl RefUnwindSafe for MapletStats
impl Send for MapletStats
impl Sync for MapletStats
impl Unpin for MapletStats
impl UnwindSafe for MapletStats
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