pub trait SolverCallback<const N: usize> {
type Error;
// Provided method
fn callback(
&mut self,
_mesh: &Mesh<N>,
_input: ImageRef<'_>,
_output: ImageRef<'_>,
_iteration: usize,
) -> Result<(), Self::Error> { ... }
}Expand description
Trait for implementing solver callbacks (most often used to output visualization data).