pub trait SignedDistance: Copy {
// Required methods
fn infinity() -> Self;
fn distance(&self) -> f32;
fn copy_with_distance(&self, distance: f32) -> Self;
fn multiply_distance_by(&self, factor: f32) -> Self;
fn material(&self) -> Material;
fn lerp(&self, b: &Self, t: f32) -> Self;
fn new_with_distance(material: Material, distance: f32) -> Self;
fn is_distance_finite(&self) -> bool;
}Required Methods§
fn infinity() -> Self
fn distance(&self) -> f32
fn copy_with_distance(&self, distance: f32) -> Self
fn multiply_distance_by(&self, factor: f32) -> Self
fn material(&self) -> Material
fn lerp(&self, b: &Self, t: f32) -> Self
fn new_with_distance(material: Material, distance: f32) -> Self
fn is_distance_finite(&self) -> bool
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.