#[non_exhaustive]pub enum TokenRole {
Text,
Syntax,
Destination,
Title,
Label,
Target,
Name,
Attributes,
}Expand description
The part of an inline a token is.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text
The inline’s content: a text node, raw HTML, a soft break, a hard
break’s line ending, an escaped character, a character reference
between & and ;, and code or math inside its delimiters apart
from the padding its value drops, which is syntax.
Syntax
A character of the inline’s own syntax.
Destination
A link’s, image’s, or autolink’s destination.
Title
A link’s or image’s title, inside its delimiters.
Label
A full reference’s second label, a footnote reference’s label, or a wiki link’s text after its pipe.
Target
A wiki link’s target.
Name
A directive’s, shortcode’s, or tag’s name.
Attributes
A directive’s attributes, inside its braces.
Trait Implementations§
impl Copy for TokenRole
impl Eq for TokenRole
impl StructuralPartialEq for TokenRole
Auto Trait Implementations§
impl Freeze for TokenRole
impl RefUnwindSafe for TokenRole
impl Send for TokenRole
impl Sync for TokenRole
impl Unpin for TokenRole
impl UnsafeUnpin for TokenRole
impl UnwindSafe for TokenRole
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more