sdd / kiddo

Kiddo
Apache License 2.0
87 stars 14 forks source link

feat!: queries return structs instead of tuples #65

Closed sdd closed 1 year ago

sdd commented 1 year ago

Query methods have been updated so that they all return either a NearestNeighbour, Vec<NearestNeighbour>, or Vec<BestNeighbour>, for consistency.

codecov-commenter commented 1 year ago

Codecov Report

Merging #65 (44ba591) into next (e1489a7) will increase coverage by 0.52%. The diff coverage is 94.54%.

@@            Coverage Diff             @@
##             next      #65      +/-   ##
==========================================
+ Coverage   83.88%   84.40%   +0.52%     
==========================================
  Files          29       29              
  Lines        3593     3636      +43     
==========================================
+ Hits         3014     3069      +55     
+ Misses        579      567      -12     
Impacted Files Coverage Δ
src/fixed/query/nearest_n.rs 100.00% <ø> (ø)
src/fixed/query/within.rs 99.28% <ø> (ø)
src/fixed/query/within_unsorted.rs 100.00% <ø> (ø)
src/float/query/nearest_n.rs 94.11% <ø> (ø)
src/float/query/within_unsorted.rs 94.30% <ø> (ø)
src/lib.rs 100.00% <ø> (ø)
src/nearest_neighbour.rs 46.15% <33.33%> (ø)
src/best_neighbour.rs 46.15% <46.15%> (ø)
src/common/generate_best_n_within.rs 100.00% <100.00%> (ø)
src/common/generate_nearest_n.rs 100.00% <100.00%> (ø)
... and 8 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more