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§
Sourcefn proc_block(&mut self, block: &Block<Self>)
fn proc_block(&mut self, block: &Block<Self>)
Process single block.
Provided Methods§
Sourcefn proc_par_blocks(&mut self, blocks: &ParBlocks<Self>)
fn proc_par_blocks(&mut self, blocks: &ParBlocks<Self>)
Process several blocks in parallel.
Sourcefn blocks_needed_to_align(&self) -> usize
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.