pub enum Compressed {
Binaries(Vec<u8>),
Bytes(Vec<u8>),
}Expand description
Wrapper for compression results and decompression arguments
Variants§
Implementations§
Source§impl Compressed
impl Compressed
pub fn new() -> Self
Sourcepub fn to_binaries(&self) -> Vec<u8> ⓘ
pub fn to_binaries(&self) -> Vec<u8> ⓘ
Extract the binaries from the wrapper
Sourcepub fn extend_to_res(self, res: &mut Vec<u8>)
pub fn extend_to_res(self, res: &mut Vec<u8>)
Handler not important
pub fn combine(self, other: Compressed) -> Self
Sourcepub fn from_bytes(bytes: Vec<u8>) -> Self
pub fn from_bytes(bytes: Vec<u8>) -> Self
Vec
Sourcepub fn from_binaries(binaries: &[u8]) -> Self
pub fn from_binaries(binaries: &[u8]) -> Self
Vec
Trait Implementations§
Source§impl Clone for Compressed
impl Clone for Compressed
Source§fn clone(&self) -> Compressed
fn clone(&self) -> Compressed
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 Compressed
impl Debug for Compressed
Source§impl Ord for Compressed
impl Ord for Compressed
Source§fn cmp(&self, other: &Compressed) -> Ordering
fn cmp(&self, other: &Compressed) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Compressed
impl PartialEq for Compressed
Source§impl PartialOrd for Compressed
impl PartialOrd for Compressed
impl Eq for Compressed
impl StructuralPartialEq for Compressed
Auto Trait Implementations§
impl Freeze for Compressed
impl RefUnwindSafe for Compressed
impl Send for Compressed
impl Sync for Compressed
impl Unpin for Compressed
impl UnwindSafe for Compressed
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