pub struct PackingStats {
pub total_sequences: usize,
pub num_packed_sequences: usize,
pub avg_sequences_per_pack: f32,
pub avg_efficiency: f32,
pub unpacked_sequences: usize,
pub tokens_saved: usize,
pub compression_ratio: f32,
}Expand description
Statistics about the packing process
Fields§
§total_sequences: usizeTotal number of original sequences
num_packed_sequences: usizeNumber of packed sequences produced
avg_sequences_per_pack: f32Average number of sequences per pack
avg_efficiency: f32Average efficiency (utilization ratio)
unpacked_sequences: usizeNumber of sequences that couldn’t be packed
tokens_saved: usizeTotal tokens saved through packing
compression_ratio: f32Compression ratio (original tokens / packed tokens)
Trait Implementations§
Source§impl Clone for PackingStats
impl Clone for PackingStats
Source§fn clone(&self) -> PackingStats
fn clone(&self) -> PackingStats
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 PackingStats
impl Debug for PackingStats
Auto Trait Implementations§
impl Freeze for PackingStats
impl RefUnwindSafe for PackingStats
impl Send for PackingStats
impl Sync for PackingStats
impl Unpin for PackingStats
impl UnsafeUnpin for PackingStats
impl UnwindSafe for PackingStats
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more