pub trait Primitive {
// Required methods
fn to_wgsl<S: WgslSpace>(&self, space: &S, name: &str) -> String;
fn eval<S: Space<Point = Vec3, Vector = Vec3>>(
&self,
space: &S,
p: Vec3,
) -> f32;
}Required Methods§
fn to_wgsl<S: WgslSpace>(&self, space: &S, name: &str) -> String
fn eval<S: Space<Point = Vec3, Vector = Vec3>>(&self, space: &S, p: Vec3) -> f32
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.