pub struct EncodeReport {
pub kind: CandidateKind,
pub source_len: u64,
pub encoded_len: u64,
pub cost: CostBreakdown,
pub sha256_hex: String,
pub candidates_evaluated: u32,
pub graph_ops: usize,
}Expand description
A report describing encode-time decisions and physical attribution.
Fields§
§kind: CandidateKindWinning candidate family.
source_len: u64Source length in bytes.
encoded_len: u64Serialized .voldoc length in bytes.
cost: CostBreakdownPhysical byte attribution of the serialized descriptor.
sha256_hex: StringLower-case hex SHA-256 of the source.
candidates_evaluated: u32Number of candidates evaluated.
graph_ops: usizeReconstruction work (DRA instruction count) of the winner.
Implementations§
Source§impl EncodeReport
impl EncodeReport
Sourcepub fn compression_ratio(&self) -> f64
pub fn compression_ratio(&self) -> f64
Source bytes divided by encoded bytes (0.0 when the source is empty).
Trait Implementations§
Source§impl Clone for EncodeReport
impl Clone for EncodeReport
Auto Trait Implementations§
impl Freeze for EncodeReport
impl RefUnwindSafe for EncodeReport
impl Send for EncodeReport
impl Sync for EncodeReport
impl Unpin for EncodeReport
impl UnsafeUnpin for EncodeReport
impl UnwindSafe for EncodeReport
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