summaryrefslogtreecommitdiffstats
path: root/src/coords.rs
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-06-27 17:17:10 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-06-27 17:40:03 -0400
commit07e61231dff21fda6da32929c0eae82fa44f6517 (patch)
tree0279b132f1b3b82f9c4e7ac581d152d052fa3c52 /src/coords.rs
parente466113d70e9786259b3516b5951771b0706e5d8 (diff)
downloadacap-07e61231dff21fda6da32929c0eae82fa44f6517.tar.xz
docs: Update some links
Diffstat (limited to 'src/coords.rs')
-rw-r--r--src/coords.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/coords.rs b/src/coords.rs
index 08e807c..a95e378 100644
--- a/src/coords.rs
+++ b/src/coords.rs
@@ -24,7 +24,7 @@ pub trait Coordinates {
}
}
-/// [Coordinates] implementation for slices.
+/// [`Coordinates`] implementation for slices.
impl<T: Value> Coordinates for [T] {
type Value = T;
@@ -37,7 +37,7 @@ impl<T: Value> Coordinates for [T] {
}
}
-/// [Coordinates] implementation for arrays.
+/// [`Coordinates`] implementation for arrays.
macro_rules! array_coordinates {
($n:expr) => (
impl<T: Value> Coordinates for [T; $n] {
@@ -63,7 +63,7 @@ array_coordinates!(6);
array_coordinates!(7);
array_coordinates!(8);
-/// [Coordinates] implemention for vectors.
+/// [`Coordinates`] implemention for vectors.
impl<T: Value> Coordinates for Vec<T> {
type Value = T;
@@ -76,7 +76,7 @@ impl<T: Value> Coordinates for Vec<T> {
}
}
-/// Blanket [Coordinates] implementation for references.
+/// Blanket [`Coordinates`] implementation for references.
impl<T: ?Sized + Coordinates> Coordinates for &T {
type Value = T::Value;
@@ -97,7 +97,7 @@ pub trait CoordinateProximity<T> {
fn distance_to_coords(&self, coords: &[T]) -> Self::Distance;
}
-/// Blanket [CoordinateProximity] implementation for references.
+/// Blanket [`CoordinateProximity`] implementation for references.
impl<T: CoordinateProximity<U>, U> CoordinateProximity<U> for &T {
type Distance = T::Distance;
@@ -109,5 +109,5 @@ impl<T: CoordinateProximity<U>, U> CoordinateProximity<U> for &T {
/// Marker trait for coordinate proximities that are [metrics][crate::distance::Metric].
pub trait CoordinateMetric<T>: CoordinateProximity<T> {}
-/// Blanket [CoordinateMetric] implementation for references.
+/// Blanket [`CoordinateMetric`] implementation for references.
impl<T: CoordinateMetric<U>, U> CoordinateMetric<U> for &T {}