pub struct ChunkBundle { /* private fields */ }
Implementations§
Source§impl ChunkBundle
impl ChunkBundle
pub fn new(list: Vec<ChunkId>, hash_method: ChunkBundleHashMethod) -> Self
pub fn len(&self) -> u64
pub fn hash_method(&self) -> &ChunkBundleHashMethod
pub fn chunk_list(&self) -> &Vec<ChunkId>
pub fn calc_hash_value(&self) -> HashValue
Trait Implementations§
Source§impl Clone for ChunkBundle
impl Clone for ChunkBundle
Source§fn clone(&self) -> ChunkBundle
fn clone(&self) -> ChunkBundle
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 Debug for ChunkBundle
impl Debug for ChunkBundle
Source§impl ObjectFormat for ChunkBundle
impl ObjectFormat for ChunkBundle
fn format_json(&self) -> Value
Auto Trait Implementations§
impl Freeze for ChunkBundle
impl RefUnwindSafe for ChunkBundle
impl Send for ChunkBundle
impl Sync for ChunkBundle
impl Unpin for ChunkBundle
impl UnwindSafe for ChunkBundle
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more