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 | |
| parent | f105663037c44740b5aa02dea72a9b368bc003e0 (diff) | |
Use newly stabilized intra doc links ↩
Diffstat (limited to 'src/eval')
| -rw-r--r-- | src/eval/args.rs | 4 | ||||
| -rw-r--r-- | src/eval/convert.rs | 5 | ||||
| -rw-r--r-- | src/eval/mod.rs | 13 | ||||
| -rw-r--r-- | src/eval/value.rs | 1 |
4 files changed, 5 insertions, 18 deletions
diff --git a/src/eval/args.rs b/src/eval/args.rs index dda6fedf..e9bf378b 100644 --- a/src/eval/args.rs +++ b/src/eval/args.rs @@ -28,10 +28,8 @@ impl Args { }) } - /// This is the same as [`get`], except that it generates an error about a + /// This is the same as [`get`](Self::get), except that it generates an error about a /// missing argument with the given `name` if the key does not exist. - /// - /// [`get`]: #method.get pub fn need<'a, K, T>( &mut self, ctx: &mut EvalContext, diff --git a/src/eval/convert.rs b/src/eval/convert.rs index 4885b72f..81e42694 100644 --- a/src/eval/convert.rs +++ b/src/eval/convert.rs @@ -85,10 +85,7 @@ macro_rules! convert_ident { }; } -/// A value type that matches [identifier] and [string] values. -/// -/// [identifier]: enum.Value.html#variant.Ident -/// [string]: enum.Value.html#variant.Str +/// A value type that matches [identifier](Value::Ident) and [string](Value::Str) values. pub struct StringLike(pub String); impl From<StringLike> for String { 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 { diff --git a/src/eval/value.rs b/src/eval/value.rs index c6850f43..e897fa75 100644 --- a/src/eval/value.rs +++ b/src/eval/value.rs @@ -134,7 +134,6 @@ pub type ValueDict = Dict<SpannedEntry<Value>>; /// [`Value`] when directly putting the `Rc` in there, see the [Rust /// Issue]. /// -/// [`Value`]: enum.Value.html /// [Rust Issue]: https://github.com/rust-lang/rust/issues/31740 #[derive(Clone)] pub struct ValueFunc(pub Rc<Func>); |
