Pose

Trait Pose 

Source
pub trait Pose:
    Serialize
    + for<'a> Deserialize<'a>
    + Debug
    + Clone
    + Copy
    + PartialEq
    + Sub {
    // Required methods
    fn new(x: f32, y: f32, theta: f32) -> Self;
    fn get_x(&self) -> f32;
    fn get_y(&self) -> f32;
    fn get_theta(&self) -> f32;
    fn set_x(&mut self, x: f32);
    fn set_y(&mut self, y: f32);
    fn set_theta(&mut self, theta: f32);
}

Required Methods§

Source

fn new(x: f32, y: f32, theta: f32) -> Self

Source

fn get_x(&self) -> f32

Source

fn get_y(&self) -> f32

Source

fn get_theta(&self) -> f32

Source

fn set_x(&mut self, x: f32)

Source

fn set_y(&mut self, y: f32)

Source

fn set_theta(&mut self, theta: f32)

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.

Implementors§