Skip to main content

CanProject

Trait CanProject 

Source
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§

Source

type Projection

Result type produced by the projection.

Required Methods§

Source

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".

Implementors§