Struct object::read::CompressedFileRange
source · [−]pub struct CompressedFileRange {
pub format: CompressionFormat,
pub offset: u64,
pub compressed_size: u64,
pub uncompressed_size: u64,
}
Expand description
A range in a file that may be compressed.
Fields
format: CompressionFormat
The data compression format.
offset: u64
The file offset of the compressed data.
compressed_size: u64
The compressed data size.
uncompressed_size: u64
The uncompressed data size.
Implementations
Trait Implementations
sourceimpl Clone for CompressedFileRange
impl Clone for CompressedFileRange
sourcefn clone(&self) -> CompressedFileRange
fn clone(&self) -> CompressedFileRange
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 CompressedFileRange
impl Debug for CompressedFileRange
sourceimpl Hash for CompressedFileRange
impl Hash for CompressedFileRange
sourceimpl PartialEq<CompressedFileRange> for CompressedFileRange
impl PartialEq<CompressedFileRange> for CompressedFileRange
sourcefn eq(&self, other: &CompressedFileRange) -> bool
fn eq(&self, other: &CompressedFileRange) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CompressedFileRange) -> bool
fn ne(&self, other: &CompressedFileRange) -> bool
This method tests for !=
.
impl Copy for CompressedFileRange
impl Eq for CompressedFileRange
impl StructuralEq for CompressedFileRange
impl StructuralPartialEq for CompressedFileRange
Auto Trait Implementations
impl RefUnwindSafe for CompressedFileRange
impl Send for CompressedFileRange
impl Sync for CompressedFileRange
impl Unpin for CompressedFileRange
impl UnwindSafe for CompressedFileRange
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