Apply

Trait Apply 

Source
pub trait Apply<T> {
    type Output;

    // Required method
    fn apply(&self, t: &T) -> Self::Output;
}
Expand description

Trait for applying a transform to a type.

Required Associated Types§

Source

type Output

The transform codomain type.

Required Methods§

Source

fn apply(&self, t: &T) -> Self::Output

Applies this transform to a value.

Implementors§

Source§

impl<Src> Apply<Point<[f32; 3], Real<3, Src>>> for Mat4x4<RealToProj<Src>>

Source§

impl<Src, Dest> Apply<Point<[f32; 2], Real<2, Src>>> for Mat2x2<RealToReal<2, Src, Dest>>

Source§

type Output = Point<[f32; 2], Real<2, Dest>>

Source§

impl<Src, Dest> Apply<Point<[f32; 2], Real<2, Src>>> for Mat3x3<RealToReal<2, Src, Dest>>

Source§

type Output = Point<[f32; 2], Real<2, Dest>>

Source§

impl<Src, Dest> Apply<Point<[f32; 3], Real<3, Src>>> for Mat3x3<RealToReal<3, Src, Dest>>

Source§

type Output = Point<[f32; 3], Real<3, Dest>>

Source§

impl<Src, Dest> Apply<Vector<[f32; 2], Real<2, Src>>> for Mat2x2<RealToReal<2, Src, Dest>>

Source§

type Output = Vector<[f32; 2], Real<2, Dest>>

Source§

impl<Src, Dest> Apply<Vector<[f32; 2], Real<2, Src>>> for Mat3x3<RealToReal<2, Src, Dest>>

Source§

type Output = Vector<[f32; 2], Real<2, Dest>>

Source§

impl<Src, Dest> Apply<Vector<[f32; 3], Real<3, Src>>> for Mat3x3<RealToReal<3, Src, Dest>>

Source§

type Output = Vector<[f32; 3], Real<3, Dest>>

Source§

impl<Src, Dst> Apply<Point<[f32; 3], Real<3, Src>>> for Mat4x4<RealToReal<3, Src, Dst>>

Source§

type Output = Point<[f32; 3], Real<3, Dst>>

Source§

impl<Src, Dst> Apply<Vector<[f32; 3], Real<3, Src>>> for Mat4x4<RealToReal<3, Src, Dst>>

Source§

type Output = Vector<[f32; 3], Real<3, Dst>>