GetRangeTo

Trait GetRangeTo 

Source
pub trait GetRangeTo {
    // Required method
    fn get_range_to(self, other: Self) -> u32;
}
Expand description

Trait that encapsulates being able to get a standardized range value from one node to another.

Required Methods§

Source

fn get_range_to(self, other: Self) -> u32

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl GetRangeTo for Position

Source§

fn get_range_to(self, other: Self) -> u32

Source§

impl GetRangeTo for RoomXY

Source§

fn get_range_to(self, other: Self) -> u32

Implementors§