Enum kiddo::kiddo::Node[][src]

pub enum Node<A, T: PartialEq, const K: usize> {
    Stem {
        left: Box<KdTree<A, T, K>>,
        right: Box<KdTree<A, T, K>>,
        split_value: A,
        split_dimension: u8,
    },
    Leaf {
        points: Vec<[A; K]>,
        bucket: Vec<T>,
        capacity: usize,
    },
}

Variants

Stem

Fields of Stem

left: Box<KdTree<A, T, K>>right: Box<KdTree<A, T, K>>split_value: Asplit_dimension: u8
Leaf

Fields of Leaf

points: Vec<[A; K]>bucket: Vec<T>capacity: usize

Trait Implementations

impl<A: Clone, T: Clone + PartialEq, const K: usize> Clone for Node<A, T, K>[src]

impl<A: Debug, T: Debug + PartialEq, const K: usize> Debug for Node<A, T, K>[src]

impl<'de, A, T: PartialEq, const K: usize> Deserialize<'de> for Node<A, T, K> where
    A: Deserialize<'de>,
    T: Deserialize<'de>, 
[src]

impl<A, T: PartialEq, const K: usize> Serialize for Node<A, T, K> where
    A: Serialize,
    T: Serialize
[src]

Auto Trait Implementations

impl<A, T, const K: usize> RefUnwindSafe for Node<A, T, K> where
    A: RefUnwindSafe,
    T: RefUnwindSafe

impl<A, T, const K: usize> Send for Node<A, T, K> where
    A: Send,
    T: Send

impl<A, T, const K: usize> Sync for Node<A, T, K> where
    A: Sync,
    T: Sync

impl<A, T, const K: usize> Unpin for Node<A, T, K> where
    A: Unpin,
    T: Unpin

impl<A, T, const K: usize> UnwindSafe for Node<A, T, K> where
    A: UnwindSafe,
    T: UnwindSafe

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.