pub struct ByteHeuristicEstimator;Expand description
Fast pre-filter ONLY; under-counts dense JSON/code. Never used to claim exact savings.
Trait Implementations§
Source§impl Clone for ByteHeuristicEstimator
impl Clone for ByteHeuristicEstimator
Source§fn clone(&self) -> ByteHeuristicEstimator
fn clone(&self) -> ByteHeuristicEstimator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ByteHeuristicEstimator
Source§impl Debug for ByteHeuristicEstimator
impl Debug for ByteHeuristicEstimator
Source§impl Default for ByteHeuristicEstimator
impl Default for ByteHeuristicEstimator
Source§fn default() -> ByteHeuristicEstimator
fn default() -> ByteHeuristicEstimator
Returns the “default value” for a type. Read more
Source§impl TokenEstimator for ByteHeuristicEstimator
impl TokenEstimator for ByteHeuristicEstimator
Source§fn info(&self) -> EstimatorInfo
fn info(&self) -> EstimatorInfo
Estimator provenance for
CompressionReport.estimator.fn count_bytes(&self, bytes: &[u8]) -> usize
Auto Trait Implementations§
impl Freeze for ByteHeuristicEstimator
impl RefUnwindSafe for ByteHeuristicEstimator
impl Send for ByteHeuristicEstimator
impl Sync for ByteHeuristicEstimator
impl Unpin for ByteHeuristicEstimator
impl UnsafeUnpin for ByteHeuristicEstimator
impl UnwindSafe for ByteHeuristicEstimator
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