pub trait Positioned {
// Required methods
fn x(&self) -> u32;
fn y(&self) -> u32;
fn set_position(&mut self, x: u32, y: u32);
}Expand description
Trait for positioned elements (x, y coordinates)
Required Methods§
Sourcefn set_position(&mut self, x: u32, y: u32)
fn set_position(&mut self, x: u32, y: u32)
Set position