[librsvg: 6/17] Add a couple of docstring links




commit 87087fd31d4cae95da3a33cef15c95276958bbc6
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon Aug 29 14:11:38 2022 -0500

    Add a couple of docstring links
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/738>

 src/css.rs | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/css.rs b/src/css.rs
index e02acbe47..9d81d7e5f 100644
--- a/src/css.rs
+++ b/src/css.rs
@@ -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> {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]