[−][src]Struct goko::query_interface::BulkInterface
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]
&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<'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]
&self,
points: &[D::PointRef],
f: F
) -> Vec<T> where
F: Fn(&CoverTreeReader<D>, &D::PointRef) -> 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<'a>(
&self,
points: &[D::PointRef]
) -> Vec<GokoResult<Vec<(f32, NodeAddress)>>>
[src]
&self,
points: &[D::PointRef]
) -> Vec<GokoResult<Vec<(f32, NodeAddress)>>>
Bulk known path
pub fn knn<'a>(
&self,
points: &[D::PointRef],
k: usize
) -> Vec<GokoResult<Vec<(f32, usize)>>>
[src]
&self,
points: &[D::PointRef],
k: usize
) -> Vec<GokoResult<Vec<(f32, usize)>>>
Bulk knn
pub fn routing_knn<'a>(
&self,
points: &[D::PointRef],
k: usize
) -> Vec<GokoResult<Vec<(f32, usize)>>>
[src]
&self,
points: &[D::PointRef],
k: usize
) -> Vec<GokoResult<Vec<(f32, usize)>>>
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]
&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>
[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]
D: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
pub fn cast(self) -> U
impl<T> From<T> for T
[src]
impl<T> FromCast<T> for T
pub fn from_cast(t: T) -> T
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
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<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,