From ecb5543985cc0788d9c01e8c2e28d8ca6d8e19b6 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 15 Mar 2023 12:33:38 +0100 Subject: Node links --- library/src/shared/ext.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'library/src/shared') 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>) -> 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>) -> Self { -- cgit v1.2.3