Skip to main content

IsMovable3D

Trait IsMovable3D 

Source
pub trait IsMovable3D {
    // Required method
    fn move_by(&mut self, x: f64, y: f64, z: f64);
}
Expand description

IsMovable3D is a trait used for types within 3D space which can be moved

Required Methods§

Source

fn move_by(&mut self, x: f64, y: f64, z: f64)

Should move the object by the given offset

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> IsMovable3D for LinkedList<T>
where T: IsMovable3D,

Source§

fn move_by(&mut self, x: f64, y: f64, z: f64)

Source§

impl<T> IsMovable3D for Vec<T>
where T: IsMovable3D,

Source§

fn move_by(&mut self, x: f64, y: f64, z: f64)

Source§

impl<T> IsMovable3D for VecDeque<T>
where T: IsMovable3D,

Source§

fn move_by(&mut self, x: f64, y: f64, z: f64)

Implementors§