SetXY

Trait SetXY 

Source
pub trait SetXY {
    // Required methods
    fn set_x(&mut self, x: f64);
    fn set_y(&mut self, y: f64);

    // Provided method
    fn set_xy(&mut self, x: f64, y: f64) { ... }
}
Expand description

Trait to set the x and y values

Required Methods§

Source

fn set_x(&mut self, x: f64)

Set the x value

Source

fn set_y(&mut self, y: f64)

Set the y value

Provided Methods§

Source

fn set_xy(&mut self, x: f64, y: f64)

Set both x and y

Implementors§