diff options
author | Federico Mena Quintero <federico@gnome.org> | 2022-08-29 14:11:38 -0500 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2022-08-29 14:11:38 -0500 |
commit | 87087fd31d4cae95da3a33cef15c95276958bbc6 (patch) | |
tree | 5bd8d23b64706432f25c4364a1b35b67aa68f091 | |
parent | b1d6ddccebb36359ae01461a6bb9af464f9b6069 (diff) | |
download | librsvg-87087fd31d4cae95da3a33cef15c95276958bbc6.tar.gz |
Add a couple of docstring links
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/738>
-rw-r--r-- | src/css.rs | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -507,10 +507,9 @@ impl SelectorImpl for Selector { type PseudoElement = PseudoElement; } -/// Wraps an `Node` with a locally-defined type, so we can implement -/// a foreign trait on it. +/// Newtype wrapper around `Node` so we can implement [`selectors::Element`] for it. /// -/// `Node` is an alias for `rctree::Node`, so we can't implement +/// `Node` is an alias for [`rctree::Node`], so we can't implement /// `selectors::Element` directly on it. We implement it on the /// `RsvgElement` wrapper instead. #[derive(Clone, PartialEq)] @@ -758,11 +757,11 @@ pub struct Stylesheet { /// A match during the selector matching process /// -/// This struct comes from `Stylesheet.get_matches()`, and represents +/// This struct comes from [`Stylesheet::get_matches`], and represents /// that a certain node matched a CSS rule which has a selector with a /// certain `specificity`. The stylesheet's `origin` is also given here. /// -/// This type implements `Ord` so a list of `Match` can be sorted. +/// This type implements [`Ord`] so a list of `Match` can be sorted. /// That implementation does ordering based on origin and specificity /// as per <https://www.w3.org/TR/CSS22/cascade.html#cascading-order>. struct Match<'a> { |