pub enum Token {
Show 13 variants
Attributes {
table: Map<String, Value>,
},
Heading {
depth: u8,
tokens: Vec<Token>,
},
Html {
tag: String,
attributes: HashMap<String, String>,
tokens: Vec<Token>,
},
Paragraph {
tokens: Vec<Token>,
},
Bold {
text: String,
},
Italic {
text: String,
},
Code {
language: String,
code: String,
},
Link {
tokens: Vec<Token>,
href: String,
},
Text {
text: String,
},
Comment {
raw: String,
},
Break {
raw: String,
},
Space,
EOF,
}Expand description
https://github.com/markedjs/marked/blob/master/src/Tokenizer.js
Variants§
Attributes
Heading
Html
Paragraph
Anything that is not an already declared inline element
Bold
Italic
Code
Link
Text
Comment
Break
Space
Indicating of a space between paragraphs
EOF
Implementations§
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