pub struct Compressed<A>where
A: Compression,{
pub compressed_data: A::CompressedData,
/* private fields */
}Fields§
§compressed_data: A::CompressedDataImplementations§
Source§impl<T, A> Compressed<A>where
A: Compression<CompressedData = T>,
impl<T, A> Compressed<A>where
A: Compression<CompressedData = T>,
pub fn new(compressed_data: A::CompressedData) -> Self
pub fn decompress(&self) -> A::Data
pub fn take(self) -> A::CompressedData
Trait Implementations§
Source§impl<A> Clone for Compressed<A>
impl<A> Clone for Compressed<A>
Source§fn clone(&self) -> Compressed<A>
fn clone(&self) -> Compressed<A>
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<'de, A> Deserialize<'de> for Compressed<A>
impl<'de, A> Deserialize<'de> for Compressed<A>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<A> Serialize for Compressed<A>
impl<A> Serialize for Compressed<A>
Auto Trait Implementations§
impl<A> Freeze for Compressed<A>
impl<A> RefUnwindSafe for Compressed<A>
impl<A> Send for Compressed<A>
impl<A> Sync for Compressed<A>
impl<A> Unpin for Compressed<A>
impl<A> UnwindSafe for Compressed<A>
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