Enum pulldown_mdbook::Event
source · pub enum Event<'a> {
Start(Tag<'a>),
End(Tag<'a>),
Root(PathBuf),
Title(CowStr<'a>),
Author(CowStr<'a>),
Separator,
MarkdownContentEvent(Event<'a>),
}
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.
Root(PathBuf)
The root path of the book.
Title(CowStr<'a>)
The title of the book.
Author(CowStr<'a>)
An author of the book.
Separator
Separators can be added before, in-between, and after any other element.
MarkdownContentEvent(Event<'a>)
Parsed markdown content.
Trait Implementations§
source§impl<'a> PartialEq for Event<'a>
impl<'a> PartialEq for Event<'a>
impl<'a> StructuralPartialEq for Event<'a>
Auto Trait Implementations§
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