Trait ManhattanDistance

Source
pub trait ManhattanDistance<T> {
    // Required method
    fn manhattan_distance(self, other: Self) -> T;
}

Required Methods§

Source

fn manhattan_distance(self, other: Self) -> T

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 ManhattanDistance<u32> for IVec2

Source§

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

Source§

impl ManhattanDistance<u32> for UVec2

Source§

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

Implementors§