[][src]Struct asuran_chunker::static_size::StaticSize

pub struct StaticSize {
    pub len: usize,
}

Settings for a static chunk length Chunker

This is a pretty simple chunker, it simply splits the contents into len sized chunks. Has a comparatively poor reduplication ratio, due to the boundary shift problem, but it has more performance than just about anything else out there.

Fields

len: usize

Trait Implementations

impl Chunker for StaticSize[src]

type Chunks = StaticSizeChunker

The return type of the functions in this trait is an iterator over the chunks of their input. Read more

impl Clone for StaticSize[src]

impl Copy for StaticSize[src]

impl Default for StaticSize[src]

fn default() -> Self[src]

Provides default settings with a chunk size of 64kiB

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> 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,