pub struct CompressionResult {
pub output: Vec<u8>,
pub delta: usize,
}
Expand description
A struct containing a vector representing the compressed data, as well as metadata related to the compression operation.
Fields§
§output: Vec<u8>
A vector containing the compressed output data.
delta: usize
This value represents the minimum gap that should be maintained between the compressed data’s end address and the uncompressed data’s end address when decompressing in-place. When using the backwards compression mode the gap has to be between the start of the compressed data and the start of the uncompressed data.
Please refer to the original C implementation’s readme for an in-depth explanation.
Auto Trait Implementations§
impl Freeze for CompressionResult
impl RefUnwindSafe for CompressionResult
impl Send for CompressionResult
impl Sync for CompressionResult
impl Unpin for CompressionResult
impl UnwindSafe for CompressionResult
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