diff --git a/color/src/dynamic.rs b/color/src/dynamic.rs index c76cdc1..f1c1f91 100644 --- a/color/src/dynamic.rs +++ b/color/src/dynamic.rs @@ -11,7 +11,7 @@ use crate::{ }; use core::hash::{Hash, Hasher}; -/// A color with a color space tag decided at runtime. +/// A color with a [color space tag] decided at runtime. /// /// This type is roughly equivalent to [`AlphaColor`] except with a tag /// for color space as opposed being determined at compile time. It can @@ -27,6 +27,7 @@ use core::hash::{Hash, Hasher}; /// When manipulating components directly, setting them nonzero when the /// corresponding missing flag is set may yield unexpected results. /// +/// [color space tag]: ColorSpaceTag /// [Oklch]: crate::Oklch #[derive(Clone, Copy, Debug)] #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] diff --git a/color/src/gradient.rs b/color/src/gradient.rs index 9caae9c..6a1d4fc 100644 --- a/color/src/gradient.rs +++ b/color/src/gradient.rs @@ -10,7 +10,7 @@ use crate::{ /// This will yield a value for each gradient stop, including `t` values /// of 0 and 1 at the endpoints. /// -/// Use the `gradient` function to generate this iterator. +/// Use the [`gradient`] function to generate this iterator. #[expect(missing_debug_implementations, reason = "it's an iterator")] pub struct GradientIter { interpolator: Interpolator, diff --git a/color/src/tag.rs b/color/src/tag.rs index 3370513..22777fc 100644 --- a/color/src/tag.rs +++ b/color/src/tag.rs @@ -8,7 +8,7 @@ use crate::{ Missing, Oklab, Oklch, ProphotoRgb, Rec2020, Srgb, XyzD50, XyzD65, }; -/// The color space tag for dynamic colors. +/// The color space tag for [dynamic colors]. /// /// This represents a fixed set of known color spaces. The set is /// based on the CSS Color 4 spec, but might also extend to a small @@ -17,6 +17,8 @@ use crate::{ /// Note: this has some tags not yet implemented. /// /// Note: when adding an RGB-like color space, add to `same_analogous`. +/// +/// [dynamic colors]: crate::DynamicColor #[derive(Clone, Copy, PartialEq, Eq, Debug, Hash)] #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] #[non_exhaustive]