Skip to main content

Project

Trait Project 

Source
pub trait Project<T = Self> {
    type Output;

    // Required method
    fn project(self, other: T) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn project(self, other: T) -> Self::Output

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> Project for Vector2<T>
where T: Copy + Num,

Source§

type Output = Vector2<T>

Source§

fn project(self, other: Vector2<T>) -> Self::Output

Source§

impl<T> Project for Vector3<T>
where T: Copy + Num,

Source§

type Output = Vector3<T>

Source§

fn project(self, other: Vector3<T>) -> Self::Output

Implementors§

Source§

impl<T> Project for T
where T: InnerSpace,