Struct bracket::parser::ast::Link[][src]

pub struct Link<'source> { /* fields omitted */ }
Expand description

Link node for wiki-style links.

Implementations

Create a new link.

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.

Trait Implementations

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 string for the close tag. Read more

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 !=.

String slice of the full span for this node.

The underlying template source.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.