Enum comprez::Compressed
source · [−]Expand description
Wrapper for compression results and decompression arguments
Variants
Binaries(Vec<u8>)
Bytes(Vec<u8>)
Implementations
sourceimpl Compressed
impl Compressed
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
sourceimpl Clone for Compressed
impl Clone for Compressed
sourcefn clone(&self) -> Compressed
fn clone(&self) -> Compressed
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for Compressed
impl Debug for Compressed
sourceimpl Ord for Compressed
impl Ord for Compressed
sourcefn cmp(&self, other: &Compressed) -> Ordering
fn cmp(&self, other: &Compressed) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Compressed> for Compressed
impl PartialEq<Compressed> for Compressed
sourcefn eq(&self, other: &Compressed) -> bool
fn eq(&self, other: &Compressed) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl PartialOrd<Compressed> for Compressed
impl PartialOrd<Compressed> for Compressed
sourcefn partial_cmp(&self, other: &Compressed) -> Option<Ordering>
fn partial_cmp(&self, other: &Compressed) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Eq for Compressed
impl StructuralEq for Compressed
impl StructuralPartialEq for Compressed
Auto Trait Implementations
impl RefUnwindSafe for Compressed
impl Send for Compressed
impl Sync for Compressed
impl Unpin for Compressed
impl UnwindSafe for Compressed
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more