[][src]Struct kdt::point::Point

pub struct Point<T: PartialOrd + PartialEq + Clone, const DIM: usize>(pub [T; DIM]);

Trait Implementations

impl<T: Clone + PartialOrd + PartialEq, const DIM: usize> Clone for Point<T, DIM>[src]

impl<T: Debug + PartialOrd + PartialEq + Clone, const DIM: usize> Debug for Point<T, DIM>[src]

impl<F: Float, const DIM: usize> FloatPoint<F, DIM> for Point<F, DIM>[src]

pub fn squared_eucledian(&self, other: &Self) -> F[src]

Returns the squared euclidean distance between two points.

impl<T: PartialOrd + PartialEq + Clone, const DIM: usize> From<[T; DIM]> for Point<T, DIM>[src]

impl<T: PartialOrd + PartialEq + Clone, const DIM: usize> Index<usize> for Point<T, DIM>[src]

type Output = T

The returned type after indexing.

impl<T: PartialOrd + PartialEq + Clone, const DIM: usize> IndexMut<usize> for Point<T, DIM>[src]

impl<I: PrimInt + ToPrimitive, const DIM: usize> IntPoint for Point<I, DIM>[src]

impl<T: PartialEq + PartialOrd + Clone, const DIM: usize> PartialEq<Point<T, DIM>> for Point<T, DIM>[src]

impl<T: PartialOrd + PartialEq + Clone, const DIM: usize> PartialOrd<Point<T, DIM>> for Point<T, DIM>[src]

impl<T: PartialOrd + PartialEq + Clone, const DIM: usize> StructuralPartialEq for Point<T, DIM>[src]

Auto Trait Implementations

impl<T, const DIM: usize> RefUnwindSafe for Point<T, DIM> where
    T: RefUnwindSafe
[src]

impl<T, const DIM: usize> Send for Point<T, DIM> where
    T: Send
[src]

impl<T, const DIM: usize> Sync for Point<T, DIM> where
    T: Sync
[src]

impl<T, const DIM: usize> Unpin for Point<T, DIM> where
    T: Unpin
[src]

impl<T, const DIM: usize> UnwindSafe for Point<T, DIM> where
    T: UnwindSafe
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,