Skip to main content

ChunkableFunction

Trait ChunkableFunction 

Source
pub trait ChunkableFunction<T> {
    // Required methods
    fn apply_chunk(
        &self,
        input: &ArrayView<'_, T, Ix1>,
        output: &mut ArrayViewMut<'_, T, Ix1>,
    ) -> SpecialResult<()>;
    fn name(&self) -> &str;
}
Expand description

Trait for functions that can be applied in chunks

Required Methods§

Source

fn apply_chunk( &self, input: &ArrayView<'_, T, Ix1>, output: &mut ArrayViewMut<'_, T, Ix1>, ) -> SpecialResult<()>

Apply the function to a chunk of data

Source

fn name(&self) -> &str

Get the name of the function for logging/debugging

Implementors§