pub trait Recipe<T: Numeric>: CubeType<ExpandType: RecipeExpand<T>> {
// Required method
fn evaluate(&self, coordinates: &RecipeCoords) -> T;
// Provided method
fn __expand_evaluate(
scope: &Scope,
this: &<Self as CubeType>::ExpandType,
coordinates: &<RecipeCoords as CubeType>::ExpandType,
) -> <T as CubeType>::ExpandType { ... }
}Expand description
An N-dimensional scalar field evaluated at absolute logical coordinates.
Required Methods§
fn evaluate(&self, coordinates: &RecipeCoords) -> T
Provided Methods§
fn __expand_evaluate( scope: &Scope, this: &<Self as CubeType>::ExpandType, coordinates: &<RecipeCoords as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".