[−][src]Struct cmark_gfm::Parser
An abstraction of the libcmark-gfm
parser, a CommonMark parser
supporting GitHub Flavored Markdown, using libcmark-gfm
bindings.
Fields
options: Options
Methods
impl Parser
[src]
pub fn new(options: Options) -> Parser
[src]
Creates a new cmark-gfm's parser abstraction with the defined options.
pub fn parse(&self, content: &str)
[src]
Feeds a string to parser.
pub fn get_extensions(&self) -> *mut _cmark_llist
[src]
Returns a list containing the extensions of the current parser.
pub fn finish(&self) -> *mut cmark_node
[src]
Finish parsing and return a pointer to a tree of nodes.
pub fn add_extension(&self, name: &str) -> Result<(), String>
[src]
Trait Implementations
Auto Trait Implementations
impl !Send for Parser
impl Unpin for Parser
impl !Sync for Parser
impl UnwindSafe for Parser
impl RefUnwindSafe for Parser
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,