pub enum Token {
Show 18 variants
Text(String),
EmphasisRun {
delimiter: char,
length: usize,
},
Punctuation(String),
OpenBracket,
CloseBracket,
OpenParenthesis,
CloseParenthesis,
TableCellSeparator,
OrderedListMarker(String),
Whitespace,
CodeTick,
CodeFence,
ThematicBreak,
Escape(String),
Tab,
Newline,
BlockQuoteMarker,
RawHtmlTag(String),
}
Expand description
Represents the different types of tokens that can be found in a markdown line.
Variants§
Text(String)
EmphasisRun
Punctuation(String)
OpenBracket
CloseBracket
OpenParenthesis
CloseParenthesis
TableCellSeparator
OrderedListMarker(String)
Whitespace
CodeTick
CodeFence
ThematicBreak
Escape(String)
Tab
Newline
BlockQuoteMarker
RawHtmlTag(String)
Trait Implementations§
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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