Struct goko::query_interface::BulkInterface [−][src]
pub struct BulkInterface<D: PointCloud> { /* fields omitted */ }
Inteface for bulk queries. Handles cloning the readers for you
Implementations
impl<D: PointCloud> BulkInterface<D>
[src]
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]
&self,
point_indexes: &[usize],
f: F
) -> Vec<T> where
F: Fn(&CoverTreeReader<D>, usize) -> T + Send + Sync,
T: Send + Sync,
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<P: Deref<Target = D::Point> + Send + Sync, F, T>(
&self,
points: &[P],
f: F
) -> Vec<T> where
F: Fn(&CoverTreeReader<D>, &P) -> T + Send + Sync,
T: Send + Sync,
[src]
&self,
points: &[P],
f: F
) -> Vec<T> where
F: Fn(&CoverTreeReader<D>, &P) -> T + Send + Sync,
T: Send + Sync,
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]
&self,
point_indexes: &[usize]
) -> Vec<GokoResult<Vec<(f32, NodeAddress)>>>
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]
F: Fn(&CoverTreeReader<D>, GokoResult<Vec<(f32, NodeAddress)>>) -> T + Send + Sync,
T: Send + Sync,
Bulk known path
pub fn path<P: Deref<Target = D::Point> + Send + Sync>(
&self,
points: &[P]
) -> Vec<GokoResult<Vec<(f32, NodeAddress)>>>
[src]
&self,
points: &[P]
) -> Vec<GokoResult<Vec<(f32, NodeAddress)>>>
Bulk known path
pub fn knn<P: Deref<Target = D::Point> + Send + Sync>(
&self,
points: &[P],
k: usize
) -> Vec<GokoResult<Vec<(f32, usize)>>>
[src]
&self,
points: &[P],
k: usize
) -> Vec<GokoResult<Vec<(f32, usize)>>>
Bulk knn
pub fn routing_knn<P: Deref<Target = D::Point> + Send + Sync>(
&self,
points: &[P],
k: usize
) -> Vec<GokoResult<Vec<(f32, usize)>>>
[src]
&self,
points: &[P],
k: usize
) -> Vec<GokoResult<Vec<(f32, usize)>>>
Bulk routing knn
impl<D: PointCloud<Point = [f32]>> BulkInterface<D>
[src]
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]
&self,
points: ArrayView2<'a, f32>,
f: F
) -> Vec<T> where
F: Fn(&CoverTreeReader<D>, &&[f32]) -> T + Send + Sync,
T: Send + Sync,
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>
impl<D> !RefUnwindSafe for BulkInterface<D>
impl<D> Send for BulkInterface<D>
impl<D> Send for BulkInterface<D>
impl<D> !Sync for BulkInterface<D>
impl<D> !Sync for BulkInterface<D>
impl<D> Unpin for BulkInterface<D>
impl<D> Unpin for BulkInterface<D>
impl<D> UnwindSafe for BulkInterface<D> where
D: RefUnwindSafe,
impl<D> UnwindSafe for BulkInterface<D> where
D: RefUnwindSafe,
Blanket Implementations
impl<T, U> Cast<U> for T where
U: FromCast<T>,
impl<T, U> Cast<U> for T where
U: FromCast<T>,
pub fn cast(self) -> U
impl<T> FromCast<T> for T
impl<T> FromCast<T> for T
pub fn from_cast(t: T) -> T
impl<T> Same<T> for T
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<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub unsafe fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,