Skip to main content

entry_size

Function entry_size 

Source
pub fn entry_size(key: &str, value: &Value) -> usize
Expand description

Estimates the total memory footprint of a single entry.

key heap allocation + value bytes + fixed per-entry overhead.