pub struct Parser<'a> { /* private fields */ }Implementations§
Source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
Sourcepub fn new(allocator: &'a Allocator, source: &'a str) -> Self
pub fn new(allocator: &'a Allocator, source: &'a str) -> Self
Markdown mode with the default constructs.
pub fn with_options( allocator: &'a Allocator, source: &'a str, options: ParserOptions, ) -> Self
Sourcepub fn parse(self) -> ParserReturn<'a>
pub fn parse(self) -> ParserReturn<'a>
Parse the source into a Root.
Front matter is not handled here: callers strip it before parsing (offsets in the AST are relative to what was passed in).
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Parser<'a>
impl<'a> !Send for Parser<'a>
impl<'a> !Sync for Parser<'a>
impl<'a> !UnwindSafe for Parser<'a>
impl<'a> Freeze for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> UnsafeUnpin for Parser<'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