Struct dsi_bitstream::utils::CodesStats
source · pub struct CodesStats {
pub unary: u64,
pub gamma: u64,
pub delta: u64,
pub zeta: [u64; 10],
pub golomb: [u64; 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. You have to update the
structure with the integers in the stream; at any time, you
can examine the statistics or call best_code to get the
best code.
Fields§
§unary: u64§gamma: u64§delta: u64§zeta: [u64; 10]§golomb: [u64; 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 Freeze for CodesStats
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.