Struct disk::zstd::ZstdSeekTable
source · pub struct ZstdSeekTable {
cumulative_decompressed_sizes: Vec<u64>,
cumulative_compressed_sizes: Vec<u64>,
}
Fields§
§cumulative_decompressed_sizes: Vec<u64>
§cumulative_compressed_sizes: Vec<u64>
Implementations§
source§impl ZstdSeekTable
impl ZstdSeekTable
Read seek table entries from seek_table_entries
sourcepub fn find_frame_index(&self, decompressed_offset: u64) -> Option<usize>
pub fn find_frame_index(&self, decompressed_offset: u64) -> Option<usize>
Returns the index of the frame that contains the given decompressed offset.
Trait Implementations§
source§impl Clone for ZstdSeekTable
impl Clone for ZstdSeekTable
source§fn clone(&self) -> ZstdSeekTable
fn clone(&self) -> ZstdSeekTable
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ZstdSeekTable
impl RefUnwindSafe for ZstdSeekTable
impl Send for ZstdSeekTable
impl Sync for ZstdSeekTable
impl Unpin for ZstdSeekTable
impl UnwindSafe for ZstdSeekTable
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)