[][src]Struct bitar::chunk_index::ChunkIndex

pub struct 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]

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]

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]

impl Debug for ChunkIndex[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.