Struct cyfs_bdt::ChunkListDesc
source · [−]pub struct ChunkListDesc(_);Implementations
sourceimpl ChunkListDesc
impl ChunkListDesc
pub fn from_chunk(chunk: ChunkId) -> Self
pub fn from_chunks(chunk_list: &Vec<ChunkId>) -> Self
pub fn from_file(file: &File) -> BuckyResult<Self>
pub fn chunks(&self) -> &[ChunkId]
pub fn index_of(&self, chunk: &ChunkId) -> Option<&Vec<usize>>
pub fn offset_of(&self, index: usize) -> Option<u64>
pub fn total_len(&self) -> u64
pub fn range_of(&self, range: Range<u64>) -> Vec<(usize, Range<u64>)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Trait Implementations
sourceimpl Clone for ChunkListDesc
impl Clone for ChunkListDesc
sourcefn clone(&self) -> ChunkListDesc
fn clone(&self) -> ChunkListDesc
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
Auto Trait Implementations
impl RefUnwindSafe for ChunkListDesc
impl Send for ChunkListDesc
impl Sync for ChunkListDesc
impl Unpin for ChunkListDesc
impl UnwindSafe for ChunkListDesc
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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