[][src]Struct cmark_gfm::Parser

pub struct Parser {
    pub options: Options,
    // some fields omitted
}

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

impl Drop for Parser[src]

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]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]