Skip to main content

Transformable

Trait Transformable 

Source
pub trait Transformable {
    // Required method
    fn transform(&mut self, matrix: &Mat4);
}
Expand description

A trait for types that can have a matrix transform applied. Primarily for testing/examples.

Required Methods§

Source

fn transform(&mut self, matrix: &Mat4)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl Transformable for &mut Triangle

Source§

impl<T> Transformable for T
where T: AsMut<[Triangle]>,