pub struct Link<'source> { /* fields omitted */ }
Expand description
Link node for wiki-style links.
impl<'source> Link<'source>
Get the link href.
If an owned value has been set it is preferred.
Get the link label.
If an owned value has been set it is preferred.
Get the link title.
If an owned value has been set it is preferred.
Get the span for the href.
Get the span for the label.
Get the span for the title.
Update the end of the href span.
Update the start of the label span.
Update the end of the label span.
Update the start of the title span.
Update the end of the title span.
Set an owned value for the href.
Only available when the parser detects escape sequences
in the input.
Set an owned value for the label.
Only available when the parser detects escape sequences
in the input.
Set an owned value for the title.
Only available when the parser detects escape sequences
in the input.
Determine if this link has been escaped using a leading backslash.
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Get the string for the open tag.
Get the span for the open tag.
Get the span for the close tag.
Determine if this element has been closed.
Mark this element as correctly terminated.
The full byte range for this element; if the element is not closed
only the open span is returned. Read more
Reference to the line range for the node.
Mutable reference to the line range for the node.
Set the end of the lines range.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<'source> Slice<'source> for Link<'source>
String slice of the full span for this node.
The underlying template source.
impl<'source> Eq for Link<'source>
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.