[][src]Struct grid_search_cardinal_common::coord::UnitCoord

pub struct UnitCoord(_);

Methods

impl UnitCoord[src]

pub const fn left90(self) -> Self[src]

pub const fn right90(self) -> Self[src]

pub const fn left135(self) -> Coord[src]

pub const fn right135(self) -> Coord[src]

pub const fn to_coord(self) -> Coord[src]

pub const fn to_cardinal_coord(self) -> CardinalCoord[src]

pub fn to_cardinal_direction(self) -> CardinalDirection[src]

pub fn scale(self, by: u32) -> CardinalCoord[src]

Trait Implementations

impl Clone for UnitCoord[src]

impl Copy for UnitCoord[src]

impl Debug for UnitCoord[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]