pub trait CoordinateLike<T>: PartialOrd {
    // Required method
    fn coordinate(&self) -> f64;
}
Expand description

Denote a type has a coordinate value on coordinate system T

Required Methods§

source

fn coordinate(&self) -> f64

The trait method for accessing the coordinate of the object on coordinate system T

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: CoordinateLike<C>, C> CoordinateLike<C> for &T

source§

fn coordinate(&self) -> f64

source§

impl<T: CoordinateLike<C>, C> CoordinateLike<C> for &mut T

source§

fn coordinate(&self) -> f64

Implementors§