[][src]Struct goko::query_interface::BulkInterface

pub struct BulkInterface<D: PointCloud> { /* fields omitted */ }

Inteface for bulk queries. Handles cloning the readers for you

Implementations

impl<D: PointCloud> BulkInterface<D>[src]

pub fn new(reader: CoverTreeReader<D>) -> Self[src]

Creates a new one.

pub fn index_map_with_reader<F, T>(
    &self,
    point_indexes: &[usize],
    f: F
) -> Vec<T> where
    F: Fn(&CoverTreeReader<D>, usize) -> T + Send + Sync,
    T: Send + Sync
[src]

Applies the passed in fn to the passed in indexes and collects the result in a vector. Core function for this struct.

pub fn point_map_with_reader<'a, F, T>(
    &self,
    points: &[D::PointRef],
    f: F
) -> Vec<T> where
    F: Fn(&CoverTreeReader<D>, &D::PointRef) -> T + Send + Sync,
    T: Send + Sync
[src]

Applies the passed in fn to the passed in indexes and collects the result in a vector. Core function for this struct.

pub fn known_path(
    &self,
    point_indexes: &[usize]
) -> Vec<GokoResult<Vec<(f32, NodeAddress)>>>
[src]

Bulk known path

pub fn known_path_and<F, T>(&self, point_indexes: &[usize], f: F) -> Vec<T> where
    F: Fn(&CoverTreeReader<D>, GokoResult<Vec<(f32, NodeAddress)>>) -> T + Send + Sync,
    T: Send + Sync
[src]

Bulk known path

pub fn path<'a>(
    &self,
    points: &[D::PointRef]
) -> Vec<GokoResult<Vec<(f32, NodeAddress)>>>
[src]

Bulk known path

pub fn knn<'a>(
    &self,
    points: &[D::PointRef],
    k: usize
) -> Vec<GokoResult<Vec<(f32, usize)>>>
[src]

Bulk knn

pub fn routing_knn<'a>(
    &self,
    points: &[D::PointRef],
    k: usize
) -> Vec<GokoResult<Vec<(f32, usize)>>>
[src]

Bulk routing knn

impl<D: PointCloud<Point = [f32]>> BulkInterface<D>[src]

pub fn array_map_with_reader<'a, F, T>(
    &self,
    points: ArrayView2<'a, f32>,
    f: F
) -> Vec<T> where
    F: Fn(&CoverTreeReader<D>, &&[f32]) -> T + Send + Sync,
    T: Send + Sync
[src]

Applies the passed in fn to the passed in indexes and collects the result in a vector. Core function for this struct.

Auto Trait Implementations

impl<D> !RefUnwindSafe for BulkInterface<D>[src]

impl<D> Send for BulkInterface<D>[src]

impl<D> !Sync for BulkInterface<D>[src]

impl<D> Unpin for BulkInterface<D>[src]

impl<D> UnwindSafe for BulkInterface<D> where
    D: RefUnwindSafe
[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, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> From<T> for T[src]

impl<T> FromCast<T> for T

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> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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>,