[][src]Struct quadtree_rs::point::Point

pub struct Point<U> {
    pub x: U,
    pub y: U,
}

A type representing a point in space. Should be passed by value.

Fields

x: Uy: U

Methods

impl<U> Point<U> where
    U: PrimInt
[src]

pub fn x(&self) -> U[src]

The x-coordinate of the point.

pub fn y(&self) -> U[src]

The y-coordinate of the point.

Trait Implementations

impl<U: Copy> Copy for Point<U>[src]

impl<U: PartialEq> PartialEq<Point<U>> for Point<U>[src]

impl<U: Eq> Eq for Point<U>[src]

impl<U: Clone> Clone for Point<U>[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<U> From<(U, U)> for Point<U> where
    U: PrimInt
[src]

impl<U, '_> From<&'_ (U, U)> for Point<U> where
    U: PrimInt
[src]

impl<U> Into<(U, U)> for Point<U> where
    U: PrimInt
[src]

impl<U: Hash> Hash for Point<U>[src]

default fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<U> Add<Point<U>> for Point<U> where
    U: PrimInt
[src]

type Output = Self

The resulting type after applying the + operator.

impl<U> Sub<Point<U>> for Point<U> where
    U: PrimInt
[src]

type Output = Self

The resulting type after applying the - operator.

impl<U> Debug for Point<U> where
    U: PrimInt + Debug
[src]

Auto Trait Implementations

impl<U> Send for Point<U> where
    U: Send

impl<U> Sync for Point<U> where
    U: Sync

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.