Struct minimad::LineParser
source · [−]pub struct LineParser<'s> { /* private fields */ }
Expand description
The structure parsing a line or part of a line. A LineParser initialized from a markdown string exposes 2 main methods:
line
parses a line which is supposed to be part of a markdown text. This method shouln’t really be used externally: a text can be parsed in a whole usingText::from
inline
parses a snippet which isn’t supposed to be part of a markdown text. Some types of lines aren’t produced this ways as they don’t make sense out of a text: ListItem, TableRow, Code.
Normally not used directly but though line::from(str)
Implementations
Trait Implementations
Auto Trait Implementations
impl<'s> RefUnwindSafe for LineParser<'s>
impl<'s> Send for LineParser<'s>
impl<'s> Sync for LineParser<'s>
impl<'s> Unpin for LineParser<'s>
impl<'s> UnwindSafe for LineParser<'s>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more