pub trait MotionValue: Copy + PartialEq {
// Required methods
fn zero() -> Self;
fn add(self, other: Self) -> Self;
fn subtract(self, other: Self) -> Self;
fn scale(self, factor: f64) -> Self;
fn magnitude(self) -> f64;
}Required Methods§
fn zero() -> Self
fn add(self, other: Self) -> Self
fn subtract(self, other: Self) -> Self
fn scale(self, factor: f64) -> Self
fn magnitude(self) -> f64
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".