diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-11-24 16:12:41 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-11-24 16:12:41 +0100 |
| commit | 761931405c68efe0a35d96524df797dda7155723 (patch) | |
| tree | 31ac2153dc0e5a5dc4fb4f46f839caed8066542a /src/eval/mod.rs | |
| parent | f105663037c44740b5aa02dea72a9b368bc003e0 (diff) | |
Use newly stabilized intra doc links ↩
Diffstat (limited to 'src/eval/mod.rs')
| -rw-r--r-- | src/eval/mod.rs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/eval/mod.rs b/src/eval/mod.rs index 5a8b857a..c45e46ae 100644 --- a/src/eval/mod.rs +++ b/src/eval/mod.rs @@ -91,8 +91,6 @@ impl EvalContext { /// Push a layout node to the active group. /// /// Spacing nodes will be handled according to their [`Softness`]. - /// - /// [`Softness`]: ../layout/nodes/enum.Softness.html pub fn push(&mut self, node: impl Into<LayoutNode>) { let node = node.into(); @@ -196,21 +194,16 @@ impl EvalContext { /// Start a layouting group. /// - /// All further calls to [`push`] will collect nodes for this group. + /// All further calls to [`push`](Self::push) will collect nodes for this group. /// The given metadata will be returned alongside the collected nodes - /// in a matching call to [`end_group`]. - /// - /// [`push`]: #method.push - /// [`end_group`]: #method.end_group + /// in a matching call to [`end_group`](Self::end_group). fn start_group<T: 'static>(&mut self, meta: T) { self.groups.push((Box::new(meta), std::mem::take(&mut self.inner))); } - /// End a layouting group started with [`start_group`]. + /// End a layouting group started with [`start_group`](Self::start_group). /// /// This returns the stored metadata and the collected nodes. - /// - /// [`start_group`]: #method.start_group fn end_group<T: 'static>(&mut self) -> (T, Vec<LayoutNode>) { if let Some(&LayoutNode::Spacing(spacing)) = self.inner.last() { if spacing.softness == Softness::Soft { |
