Struct dsi_bitstream::codes::CodesStats
source · pub struct CodesStats {
pub unary: AtomicUsize,
pub gamma: AtomicUsize,
pub delta: AtomicUsize,
pub zeta: [AtomicUsize; 10],
pub golomb: [AtomicUsize; 20],
}
Expand description
Keeps track of the space needed to store a stream of integers using different codes.
This structure can be used to determine empirically which code provides the best compression for a given stream.
Fields§
§unary: AtomicUsize
§gamma: AtomicUsize
§delta: AtomicUsize
§zeta: [AtomicUsize; 10]
§golomb: [AtomicUsize; 20]
Implementations§
Trait Implementations§
source§impl Debug for CodesStats
impl Debug for CodesStats
source§impl Default for CodesStats
impl Default for CodesStats
source§fn default() -> CodesStats
fn default() -> CodesStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CodesStats
impl Send for CodesStats
impl Sync for CodesStats
impl Unpin for CodesStats
impl UnwindSafe for CodesStats
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
source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.