pub struct DecodedChain {
pub decoded_len: usize,
pub capped: bool,
pub best: Box<Candidate>,
}Expand description
The decoded payload of a wrapper Candidate: how many bytes it produced
and the best reading of those bytes.
Fields§
§decoded_len: usizeNumber of bytes the wrapper decoded/decompressed to (after any cap).
capped: boolTrue when the decoded output was truncated at the size cap (a possible decompression bomb) — the payload reading is of the capped prefix.
best: Box<Candidate>The best (highest-confidence) reading of the decoded payload.
Trait Implementations§
Source§impl Clone for DecodedChain
impl Clone for DecodedChain
Source§fn clone(&self) -> DecodedChain
fn clone(&self) -> DecodedChain
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DecodedChain
impl Debug for DecodedChain
Auto Trait Implementations§
impl Freeze for DecodedChain
impl RefUnwindSafe for DecodedChain
impl Send for DecodedChain
impl Sync for DecodedChain
impl Unpin for DecodedChain
impl UnsafeUnpin for DecodedChain
impl UnwindSafe for DecodedChain
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