pub struct BuffMetadata {
pub base_value: i64,
pub count: u32,
pub integer_bits: u32,
pub decimal_bits: u32,
pub total_bytes: usize,
}Expand description
Metadata about BUFF-encoded data.
Fields§
§base_value: i64The base value (minimum fixed-point value).
count: u32Number of encoded values.
integer_bits: u32Number of bits for the integer part.
decimal_bits: u32Number of bits for the decimal part.
total_bytes: usizeTotal size of the encoded data in bytes.
Implementations§
Source§impl BuffMetadata
impl BuffMetadata
Sourcepub fn compression_ratio(&self) -> f64
pub fn compression_ratio(&self) -> f64
Calculate the compression ratio (compressed size / original size).
Trait Implementations§
Source§impl Clone for BuffMetadata
impl Clone for BuffMetadata
Source§fn clone(&self) -> BuffMetadata
fn clone(&self) -> BuffMetadata
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 BuffMetadata
impl Debug for BuffMetadata
Source§impl PartialEq for BuffMetadata
impl PartialEq for BuffMetadata
impl Eq for BuffMetadata
impl StructuralPartialEq for BuffMetadata
Auto Trait Implementations§
impl Freeze for BuffMetadata
impl RefUnwindSafe for BuffMetadata
impl Send for BuffMetadata
impl Sync for BuffMetadata
impl Unpin for BuffMetadata
impl UnwindSafe for BuffMetadata
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