pub trait VectorOps:
Copy
+ Add<Output = Self>
+ Sub<Output = Self>
+ Neg<Output = Self>
+ Mul<f32, Output = Self>
+ PartialEq {
// Required methods
fn zero() -> Self;
fn dot(self, rhs: Self) -> f32;
fn is_finite(self) -> bool;
// Provided methods
fn length_squared(self) -> f32 { ... }
fn length(self) -> f32 { ... }
fn normalize_or(self, fallback: Self) -> Self { ... }
}Required Methods§
Provided Methods§
fn length_squared(self) -> f32
fn length(self) -> f32
fn normalize_or(self, fallback: Self) -> Self
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.