pub trait Function<const N: usize> {
type Error;
// Required method
fn evaluate(
&self,
engine: impl Engine<N>,
input: ImageRef<'_>,
output: ImageMut<'_>,
) -> Result<(), Self::Error>;
// Provided method
fn preprocess(
&mut self,
_mesh: &mut Mesh<N>,
_input: ImageMut<'_>,
) -> Result<(), Self::Error> { ... }
}Expand description
A function maps one set of scalar fields to another.
Required Associated Types§
Required Methods§
Provided Methods§
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.