[][src]Struct broccoli::query::KResult

pub struct KResult<'a, T: Aabb> { /* fields omitted */ }

Returned by knearest.

Implementations

impl<'a, T: Aabb> KResult<'a, T>[src]

pub fn iter(
    &mut self
) -> impl Iterator<Item = &mut [KnearestResult<'a, T>]> + FusedIterator + DoubleEndedIterator
[src]

Iterators over each group of ties starting with the closest. All the elements in one group have the same distance.

pub fn into_vec(self) -> Vec<KnearestResult<'a, T>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

Return the underlying datastructure

pub fn total_len(&self) -> usize[src]

returns the total number of elements counting ties

pub fn len(&self) -> usize[src]

Returns the number of unique distances

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for KResult<'a, T> where
    T: RefUnwindSafe,
    <T as Aabb>::Num: RefUnwindSafe
[src]

impl<'a, T> Send for KResult<'a, T> where
    T: Send,
    <T as Aabb>::Num: Send
[src]

impl<'a, T> Sync for KResult<'a, T> where
    T: Sync,
    <T as Aabb>::Num: Sync
[src]

impl<'a, T> Unpin for KResult<'a, T> where
    <T as Aabb>::Num: Unpin
[src]

impl<'a, T> !UnwindSafe for KResult<'a, T>[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> Pointable for T

type Init = T

The type for initializers.

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.