[][src]Struct bitar::chunk_dictionary::ChunkerParameters

pub struct ChunkerParameters {
    pub chunk_filter_bits: u32,
    pub min_chunk_size: u32,
    pub max_chunk_size: u32,
    pub rolling_hash_window_size: u32,
    pub chunk_hash_length: u32,
    pub chunking_algorithm: i32,
}

Fields

chunk_filter_bits: u32min_chunk_size: u32max_chunk_size: u32

max_chunk_size is also the fixed chunk size when FIXED_SIZE is set

rolling_hash_window_size: u32chunk_hash_length: u32chunking_algorithm: i32

Methods

impl ChunkerParameters[src]

pub fn chunking_algorithm(&self) -> ChunkingAlgorithm[src]

Returns the enum value of chunking_algorithm, or the default if the field is set to an invalid enum value.

pub fn set_chunking_algorithm(&mut self, value: ChunkingAlgorithm)[src]

Sets chunking_algorithm to the provided enum value.

Trait Implementations

impl Clone for ChunkerParameters[src]

impl Debug for ChunkerParameters[src]

impl Default for ChunkerParameters[src]

impl Message for ChunkerParameters[src]

impl PartialEq<ChunkerParameters> for ChunkerParameters[src]

impl StructuralPartialEq for ChunkerParameters[src]

impl TryFrom<ChunkerParameters> for ChunkerConfig[src]

type Error = Error

The type returned in the event of a conversion error.

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.