[−][src]Struct bitar::chunk_index::ChunkIndex
Methods
impl ChunkIndex
[src]
pub async fn try_build_from_file<'_, '_>(
chunker_config: &'_ ChunkerConfig,
hash_length: usize,
file: &'_ mut File
) -> Result<Self, Error>
[src]
chunker_config: &'_ ChunkerConfig,
hash_length: usize,
file: &'_ mut File
) -> Result<Self, Error>
pub fn from_dictionary(dict: &ChunkDictionary) -> Self
[src]
pub fn remove(&mut self, hash: &HashSum) -> bool
[src]
pub fn contains(&self, hash: &HashSum) -> bool
[src]
pub fn get(&self, hash: &HashSum) -> Option<&(usize, BinaryHeap<u64>)>
[src]
pub fn get_first_offset(&self, hash: &HashSum) -> Option<(usize, u64)>
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn offsets<'a>(
&'a self,
hash: &HashSum
) -> Option<impl Iterator<Item = u64> + 'a>
[src]
&'a self,
hash: &HashSum
) -> Option<impl Iterator<Item = u64> + 'a>
pub fn strip_chunks_already_in_place(&self, chunk_set: &mut ChunkIndex) -> usize
[src]
pub fn reorder_ops(&self, new_order: &Self) -> Vec<ReorderOp>
[src]
Trait Implementations
impl Clone for ChunkIndex
[src]
fn clone(&self) -> ChunkIndex
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ChunkIndex
[src]
Auto Trait Implementations
impl RefUnwindSafe for ChunkIndex
impl Send for ChunkIndex
impl Sync for ChunkIndex
impl Unpin for ChunkIndex
impl UnwindSafe for ChunkIndex
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,