geometry::transform

Trait TransformRef

Source
pub trait TransformRef: TranslateRef {
    // Required method
    fn transform_ref(&self, trans: Transformation) -> Self;
}
Expand description

A trait for specifying how an object is changed by a Transformation.

Required Methods§

Source

fn transform_ref(&self, trans: Transformation) -> Self

Applies matrix-vector Transformation trans.

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.

Implementations on Foreign Types§

Source§

impl TransformRef for ()

Source§

fn transform_ref(&self, _trans: Transformation) -> Self

Source§

impl<T: TransformRef> TransformRef for Option<T>

Source§

fn transform_ref(&self, trans: Transformation) -> Self

Source§

impl<T: TransformRef> TransformRef for Vec<T>

Source§

fn transform_ref(&self, trans: Transformation) -> Self

Implementors§