diff options
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/document.rs | 4 | ||||
| -rw-r--r-- | src/layout/mod.rs | 4 | ||||
| -rw-r--r-- | src/layout/node.rs | 3 | ||||
| -rw-r--r-- | src/layout/spacing.rs | 4 |
4 files changed, 3 insertions, 12 deletions
diff --git a/src/layout/document.rs b/src/layout/document.rs index 52d0d124..112457d6 100644 --- a/src/layout/document.rs +++ b/src/layout/document.rs @@ -23,9 +23,7 @@ impl Document { pub struct Pages { /// The size of the pages. pub size: Size, - /// The layout node that produces the actual pages (typically a [stack]). - /// - /// [stack]: struct.Stack.html + /// The layout node that produces the actual pages (typically a [`Stack`]). pub child: LayoutNode, } diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 5586a1fd..2d4553b4 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -124,9 +124,7 @@ impl Expansion { } } -/// The result of [layouting] a node. -/// -/// [layouting]: trait.Layout.html#method.layout +/// The result of [layouting](Layout::layout) a node. #[derive(Debug, Clone, PartialEq)] pub enum Layouted { /// Spacing that should be added to the parent. diff --git a/src/layout/node.rs b/src/layout/node.rs index 6b264eb0..35e742a5 100644 --- a/src/layout/node.rs +++ b/src/layout/node.rs @@ -50,7 +50,6 @@ impl Debug for LayoutNode { /// [`LayoutNode`] when directly putting the `Box` in there, see the /// [Rust Issue]. /// -/// [`LayoutNode`]: enum.LayoutNode.html /// [Rust Issue]: https://github.com/rust-lang/rust/issues/31740 pub struct Dynamic(pub Box<dyn DynNode>); @@ -102,8 +101,6 @@ impl PartialEq for Dynamic { /// DynNode>` able to implement `Clone` and `PartialEq`. However, these are /// automatically provided by a blanket impl as long as the type in question /// implements[`Layout`], `Debug`, `PartialEq`, `Clone` and is `'static`. -/// -/// [`Layout`]: ../trait.Layout.html pub trait DynNode: Debug + Layout + 'static { /// Convert into a `dyn Any` to enable downcasting. fn as_any(&self) -> &dyn Any; diff --git a/src/layout/spacing.rs b/src/layout/spacing.rs index c44f92e4..1ba3b54a 100644 --- a/src/layout/spacing.rs +++ b/src/layout/spacing.rs @@ -7,10 +7,8 @@ use super::*; pub struct Spacing { /// The amount of spacing to insert. pub amount: Length, - /// Spacing interaction, see [Softness's] documentation for more + /// Spacing interaction, see [`Softness`]'s documentation for more /// information. - /// - /// [Softness's]: enum.Softness.html pub softness: Softness, } |
