pub struct BlockParser<'a> { /* private fields */ }Expand description
Block parser state.
Implementations§
Source§impl<'a> BlockParser<'a>
impl<'a> BlockParser<'a>
Sourcepub fn new_with_options(input: &'a [u8], options: Options) -> Self
pub fn new_with_options(input: &'a [u8], options: Options) -> Self
Create a new block parser with options.
Sourcepub fn parse(&mut self, events: &mut Vec<BlockEvent>)
pub fn parse(&mut self, events: &mut Vec<BlockEvent>)
Parse all blocks and collect events.
Sourcepub fn take_link_refs(&mut self) -> LinkRefStore
pub fn take_link_refs(&mut self) -> LinkRefStore
Take the collected link reference definitions.
Sourcepub fn take_footnote_store(&mut self) -> FootnoteStore
pub fn take_footnote_store(&mut self) -> FootnoteStore
Take the collected footnote definitions.
Auto Trait Implementations§
impl<'a> Freeze for BlockParser<'a>
impl<'a> RefUnwindSafe for BlockParser<'a>
impl<'a> !Send for BlockParser<'a>
impl<'a> !Sync for BlockParser<'a>
impl<'a> Unpin for BlockParser<'a>
impl<'a> UnwindSafe for BlockParser<'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