From 07e61231dff21fda6da32929c0eae82fa44f6517 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 27 Jun 2020 17:17:10 -0400 Subject: docs: Update some links --- src/distance.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/distance.rs') diff --git a/src/distance.rs b/src/distance.rs index 20d862b..0fc1c2a 100644 --- a/src/distance.rs +++ b/src/distance.rs @@ -7,7 +7,7 @@ use num_traits::{Num, NumAssign, Signed}; /// This trait is automatically implemented for all types that support the required operations. pub trait Value: Copy + Num + NumAssign + Signed + PartialOrd {} -/// Blanket [Value] implementation. +/// Blanket [`Value`] implementation. impl Value for T {} /// A distance between two points. @@ -44,7 +44,7 @@ where } } -/// Any numerical distance value can be a [Distance]. +/// Any numerical distance value can be a [`Distance`]. impl Distance for T { type Value = T; } @@ -72,7 +72,7 @@ pub trait Proximity { /// Shorthand for `K::Distance::Value`. pub type DistanceValue = <>::Distance as Distance>::Value; -/// Blanket [Proximity] implementation for references. +/// Blanket [`Proximity`] implementation for references. impl<'k, 'v, K: Proximity, V> Proximity<&'v V> for &'k K { type Distance = K::Distance; @@ -110,5 +110,5 @@ impl<'k, 'v, K: Proximity, V> Proximity<&'v V> for &'k K { /// [pseudometric spaces]: https://en.wikipedia.org/wiki/Pseudometric_space pub trait Metric: Proximity {} -/// Blanket [Metric] implementation for references. +/// Blanket [`Metric`] implementation for references. impl<'k, 'v, K: Metric, V> Metric<&'v V> for &'k K {} -- cgit v1.2.3