[−][src]Struct quadtree_rs::point::Point
A type representing a point in space. Should be passed by value.
Fields
x: U
y: U
Methods
impl<U> Point<U> where
U: PrimInt,
[src]
U: PrimInt,
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]
fn clone(&self) -> 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]
U: PrimInt,
impl<U, '_> From<&'_ (U, U)> for Point<U> where
U: PrimInt,
[src]
U: PrimInt,
impl<U> Into<(U, U)> for Point<U> where
U: PrimInt,
[src]
U: PrimInt,
impl<U: Hash> Hash for Point<U>
[src]
fn hash<__HU: Hasher>(&self, state: &mut __HU)
[src]
default fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<U> Add<Point<U>> for Point<U> where
U: PrimInt,
[src]
U: PrimInt,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
impl<U> Sub<Point<U>> for Point<U> where
U: PrimInt,
[src]
U: PrimInt,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
impl<U> Debug for Point<U> where
U: PrimInt + Debug,
[src]
U: PrimInt + Debug,
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,