pub trait CanProject: GeometricPrimitive + Sized {
type Projection;
// Required method
fn project_onto<T>(&self, target: &T) -> Self::Projection;
}Expand description
Projects a primitive onto another target type.
Required Associated Types§
Sourcetype Projection
type Projection
Result type produced by the projection.
Required Methods§
Sourcefn project_onto<T>(&self, target: &T) -> Self::Projection
fn project_onto<T>(&self, target: &T) -> Self::Projection
Projects self onto target.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".