pub struct ConservativeEstimator;Expand description
Default conservative memory estimator: 2KB per item
Used by default for all streams. Suitable for typical JSON documents (1-5KB).
- Underestimates small objects (< 2KB) → hits limit later (safe)
- Overestimates large objects (> 2KB) → hits limit earlier (safe)
Trait Implementations§
Source§impl Clone for ConservativeEstimator
impl Clone for ConservativeEstimator
Source§fn clone(&self) -> ConservativeEstimator
fn clone(&self) -> ConservativeEstimator
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 ConservativeEstimator
impl Debug for ConservativeEstimator
Auto Trait Implementations§
impl Freeze for ConservativeEstimator
impl RefUnwindSafe for ConservativeEstimator
impl Send for ConservativeEstimator
impl Sync for ConservativeEstimator
impl Unpin for ConservativeEstimator
impl UnsafeUnpin for ConservativeEstimator
impl UnwindSafe for ConservativeEstimator
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