ToChunkIncr

Trait ToChunkIncr 

Source
pub trait ToChunkIncr {
    type Incr: ChunkIncr;

    // Required method
    fn to_chunk_incr(&self) -> Self::Incr;
}
Expand description

Implimented on types which can be converted to/can provide a ChunkIncr interface.

Types that impliment this generally represent a instantiation of a chunking algorithm.

Required Associated Types§

Source

type Incr: ChunkIncr

Incr provides the incrimental interface to this chunking instance

Required Methods§

Source

fn to_chunk_incr(&self) -> Self::Incr

to_chunk_incr() returns a ChunkIncr which can be incrimentally fed data and emits chunks.

Generally, this is a typically low cost operation that copies from the implimentor or does minor computation on its fields and may allocate some memory for storing additional state needed for incrimental computation.

Implementors§