Struct object::read::CompressedData
source · [−]pub struct CompressedData<'data> {
pub format: CompressionFormat,
pub data: &'data [u8],
pub uncompressed_size: u64,
}
Expand description
Data that may be compressed.
Fields
format: CompressionFormat
The data compression format.
data: &'data [u8]
The compressed data.
uncompressed_size: u64
The uncompressed data size.
Implementations
sourceimpl<'data> CompressedData<'data>
impl<'data> CompressedData<'data>
Trait Implementations
sourceimpl<'data> Clone for CompressedData<'data>
impl<'data> Clone for CompressedData<'data>
sourcefn clone(&self) -> CompressedData<'data>
fn clone(&self) -> CompressedData<'data>
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<'data> Debug for CompressedData<'data>
impl<'data> Debug for CompressedData<'data>
sourceimpl<'data> Hash for CompressedData<'data>
impl<'data> Hash for CompressedData<'data>
sourceimpl<'data> PartialEq<CompressedData<'data>> for CompressedData<'data>
impl<'data> PartialEq<CompressedData<'data>> for CompressedData<'data>
sourcefn eq(&self, other: &CompressedData<'data>) -> bool
fn eq(&self, other: &CompressedData<'data>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CompressedData<'data>) -> bool
fn ne(&self, other: &CompressedData<'data>) -> bool
This method tests for !=
.
impl<'data> Copy for CompressedData<'data>
impl<'data> Eq for CompressedData<'data>
impl<'data> StructuralEq for CompressedData<'data>
impl<'data> StructuralPartialEq for CompressedData<'data>
Auto Trait Implementations
impl<'data> RefUnwindSafe for CompressedData<'data>
impl<'data> Send for CompressedData<'data>
impl<'data> Sync for CompressedData<'data>
impl<'data> Unpin for CompressedData<'data>
impl<'data> UnwindSafe for CompressedData<'data>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more