universal_hash

Trait UhfBackend

Source
pub trait UhfBackend: ParBlocksSizeUser {
    // Required method
    fn proc_block(&mut self, block: &Block<Self>);

    // Provided methods
    fn proc_par_blocks(&mut self, blocks: &ParBlocks<Self>) { ... }
    fn blocks_needed_to_align(&self) -> usize { ... }
}
Expand description

Trait implemented by UHF backends.

Required Methods§

Source

fn proc_block(&mut self, block: &Block<Self>)

Process single block.

Provided Methods§

Source

fn proc_par_blocks(&mut self, blocks: &ParBlocks<Self>)

Process several blocks in parallel.

Source

fn blocks_needed_to_align(&self) -> usize

Returns the number of blocks that should be passed to Self::proc_block before Self::proc_par_blocks can be used efficiently. This is always less than Self::ParBlocksSize.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§