[][src]Trait pathtracer::traits::Location

pub trait Location {
    fn position(&self) -> Coordinate;

    fn eq<L: Location>(&self, other: &L) -> bool { ... }
fn x(&self) -> i16 { ... }
fn y(&self) -> i16 { ... }
fn sum(&self) -> i16 { ... } }

Enables the structure to be located by X or Y.

Required methods

fn position(&self) -> Coordinate

Retrieves the position Coordinates.

Loading content...

Provided methods

fn eq<L: Location>(&self, other: &L) -> bool

Returns if the positions are equal or not.

fn x(&self) -> i16

Retrieves the X coordinate.

fn y(&self) -> i16

Retrieves the Y coordinate.

fn sum(&self) -> i16

Returns the sum of the x and y value.

Loading content...

Implementors

impl Location for Coordinate[src]

impl Location for Group[src]

impl Location for HL[src]

impl Location for Node[src]

Loading content...