pub struct BinaryHunk {
pub method: BinaryMethod,
pub origlen: usize,
pub deflated: Vec<u8>,
}Expand description
One binary hunk: the encoding method and the still-deflated data, plus the declared original (inflated) length.
Fields§
§method: BinaryMethod§origlen: usizeLength of the data after inflation (the literal <N> / delta <N>
number). The caller inflates deflated to exactly this many bytes.
deflated: Vec<u8>base85-decoded, still zlib-deflated bytes.
Trait Implementations§
Source§impl Clone for BinaryHunk
impl Clone for BinaryHunk
Source§fn clone(&self) -> BinaryHunk
fn clone(&self) -> BinaryHunk
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 BinaryHunk
impl Debug for BinaryHunk
impl Eq for BinaryHunk
Source§impl PartialEq for BinaryHunk
impl PartialEq for BinaryHunk
Source§fn eq(&self, other: &BinaryHunk) -> bool
fn eq(&self, other: &BinaryHunk) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BinaryHunk
Auto Trait Implementations§
impl Freeze for BinaryHunk
impl RefUnwindSafe for BinaryHunk
impl Send for BinaryHunk
impl Sync for BinaryHunk
impl Unpin for BinaryHunk
impl UnsafeUnpin for BinaryHunk
impl UnwindSafe for BinaryHunk
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