pub enum ParseEvent {
Show 31 variants
Text(String),
InlineCode(String),
Bold(String),
Italic(String),
Underline(String),
Strikeout(String),
BoldItalic(String),
Link {
text: String,
url: String,
},
Image {
alt: String,
url: String,
},
Footnote(String),
Heading {
level: u8,
content: String,
},
CodeBlockStart {
language: Option<String>,
indent: usize,
},
CodeBlockLine(String),
CodeBlockEnd,
ListItem {
indent: usize,
bullet: ListBullet,
content: String,
},
ListEnd,
TableHeader(Vec<String>),
TableRow(Vec<String>),
TableSeparator,
TableEnd,
BlockquoteStart {
depth: usize,
},
BlockquoteLine(String),
BlockquoteEnd,
ThinkBlockStart,
ThinkBlockLine(String),
ThinkBlockEnd,
HorizontalRule,
EmptyLine,
Newline,
Prompt(String),
InlineElements(Vec<InlineElement>),
}Expand description
Events emitted by the parser.
Variants§
Text(String)
InlineCode(String)
Bold(String)
Italic(String)
Underline(String)
Strikeout(String)
BoldItalic(String)
Link
Image
Footnote(String)
Heading
CodeBlockStart
CodeBlockLine(String)
CodeBlockEnd
ListItem
ListEnd
TableHeader(Vec<String>)
TableRow(Vec<String>)
TableSeparator
TableEnd
BlockquoteStart
BlockquoteLine(String)
BlockquoteEnd
ThinkBlockStart
ThinkBlockLine(String)
ThinkBlockEnd
HorizontalRule
EmptyLine
Newline
Prompt(String)
InlineElements(Vec<InlineElement>)
Implementations§
Trait Implementations§
Source§impl Clone for ParseEvent
impl Clone for ParseEvent
Source§fn clone(&self) -> ParseEvent
fn clone(&self) -> ParseEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseEvent
impl Debug for ParseEvent
Source§impl PartialEq for ParseEvent
impl PartialEq for ParseEvent
impl StructuralPartialEq for ParseEvent
Auto Trait Implementations§
impl Freeze for ParseEvent
impl RefUnwindSafe for ParseEvent
impl Send for ParseEvent
impl Sync for ParseEvent
impl Unpin for ParseEvent
impl UnwindSafe for ParseEvent
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