diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-15 12:33:38 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-15 12:33:38 +0100 |
| commit | ecb5543985cc0788d9c01e8c2e28d8ca6d8e19b6 (patch) | |
| tree | fcd6dfaad54d4076ee6d767ceb5f388b3c84225b /library/src/shared/ext.rs | |
| parent | 85678118086b29b3820813411cf382fa283b39f0 (diff) | |
Node links
Diffstat (limited to 'library/src/shared/ext.rs')
| -rw-r--r-- | library/src/shared/ext.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/src/shared/ext.rs b/library/src/shared/ext.rs index e335b4c8..14674c9d 100644 --- a/library/src/shared/ext.rs +++ b/library/src/shared/ext.rs @@ -15,8 +15,8 @@ pub trait ContentExt { /// Underline this content. fn underlined(self) -> Self; - /// Link the content to a destination. - fn linked(self, dest: Destination) -> Self; + /// Link the content somewhere. + fn linked(self, link: Link) -> Self; /// Set alignments for this content. fn aligned(self, aligns: Axes<Option<GenAlign>>) -> Self; @@ -41,8 +41,8 @@ impl ContentExt for Content { UnderlineNode::new(self).pack() } - fn linked(self, dest: Destination) -> Self { - self.styled(MetaNode::set_data(vec![Meta::Link(dest)])) + fn linked(self, link: Link) -> Self { + self.styled(MetaNode::set_data(vec![Meta::Link(link)])) } fn aligned(self, aligns: Axes<Option<GenAlign>>) -> Self { |
