[][src]Struct vec2d::Coord

pub struct Coord {
    pub x: usize,
    pub y: usize,
}

2D coordinate

Fields

x: usize

X component

y: usize

Y component

Methods

impl Coord[src]

pub fn new(x: usize, y: usize) -> Coord[src]

Create a coordinate at (x, y)

Trait Implementations

impl Add<Coord> for Coord[src]

type Output = Coord

The resulting type after applying the + operator.

impl Clone for Coord[src]

impl Copy for Coord[src]

impl Debug for Coord[src]

impl Eq for Coord[src]

impl Hash for Coord[src]

impl PartialEq<Coord> for Coord[src]

impl StructuralEq for Coord[src]

impl StructuralPartialEq for Coord[src]

Auto Trait Implementations

impl RefUnwindSafe for Coord

impl Send for Coord

impl Sync for Coord

impl Unpin for Coord

impl UnwindSafe for Coord

Blanket Implementations

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

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

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

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 = Infallible

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.