pub enum Event<'a> {
Start(Tag<'a>),
End(Tag<'a>),
Text(CowStr<'a>),
Code(CowStr<'a>),
FootnoteReference(CowStr<'a>),
SoftBreak,
HardBreak,
Rule,
Html(CowStr<'a>),
TaskListMarker(bool),
}Expand description
A markdown event
Variants§
Start(Tag<'a>)
Start of a tagged element. Events that are yielded after this event and before its corresponding End event are inside this element. Start and end events are guaranteed to be balanced.
End(Tag<'a>)
End of a tagged element
Text(CowStr<'a>)
Text
Code(CowStr<'a>)
Inline code
FootnoteReference(CowStr<'a>)
Reference to a footnote
SoftBreak
A soft line break (‘\n’)
HardBreak
A hard line break, corresponding to <br/> in html
Rule
A horizontal rule
Html(CowStr<'a>)
A html node
TaskListMarker(bool)
A tasklist marker, rendered as a checkbox in html; an inner value of true indicates that it is checked.
Trait Implementations§
Source§impl<'a> From<Event<'a>> for Event<'a>
impl<'a> From<Event<'a>> for Event<'a>
Source§fn from(src: PulldownEvent<'a>) -> Event<'a>
fn from(src: PulldownEvent<'a>) -> Event<'a>
Converts to this type from the input type.
Source§impl MakeStatic for Event<'_>
impl MakeStatic for Event<'_>
impl<'a> StructuralPartialEq for Event<'a>
Auto Trait Implementations§
impl<'a> Freeze for Event<'a>
impl<'a> RefUnwindSafe for Event<'a>
impl<'a> Send for Event<'a>
impl<'a> Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnwindSafe for Event<'a>
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