pub trait Position {
    // Required methods
    fn x(&self) -> u32;
    fn y(&self) -> u32;
}
Expand description

Something with a 2d position.

Required Methods§

source

fn x(&self) -> u32

x-coordinate.

source

fn y(&self) -> u32

y-coordinate.

Implementors§