pub struct FixedEstimator { /* private fields */ }Expand description
Custom memory estimator using fixed bytes per item
Use this if your analysis shows different typical item sizes.
Example: if your JSON averages 4KB, use FixedEstimator::new(4096)
Implementations§
Trait Implementations§
Source§impl Clone for FixedEstimator
impl Clone for FixedEstimator
Source§fn clone(&self) -> FixedEstimator
fn clone(&self) -> FixedEstimator
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 FixedEstimator
impl Debug for FixedEstimator
Source§impl MemoryEstimator for FixedEstimator
impl MemoryEstimator for FixedEstimator
Auto Trait Implementations§
impl Freeze for FixedEstimator
impl RefUnwindSafe for FixedEstimator
impl Send for FixedEstimator
impl Sync for FixedEstimator
impl Unpin for FixedEstimator
impl UnsafeUnpin for FixedEstimator
impl UnwindSafe for FixedEstimator
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