diff options
author | IshitaTakeshi <ishitah.takeshi@gmail.com> | 2024-05-15 18:02:22 +0900 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2025-02-18 10:34:38 -0500 |
commit | b4c25f17cd8d75f05123928e47f44dd56275749f (patch) | |
tree | f39e279a0d412dd0ce372ed865d33d423732c9bc /src/knn.rs | |
parent | 17f118fbc74a26f55a5263e616faeb20368de9d0 (diff) | |
download | acap-b4c25f17cd8d75f05123928e47f44dd56275749f.tar.xz |
Make this crate work with no-std
Diffstat (limited to 'src/knn.rs')
-rw-r--r-- | src/knn.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2,6 +2,8 @@ use crate::distance::{Distance, Proximity}; +use alloc::vec::Vec; + /// A nearest neighbor. #[derive(Clone, Copy, Debug)] pub struct Neighbor<V, D> { @@ -351,6 +353,8 @@ pub mod tests { use rand::prelude::*; + use alloc::vec; + type Point = Euclidean<[f32; 3]>; /// Test an [ExactNeighbors] implementation. |