[][src]Trait bookbinder_ast::ParseHelper

pub trait ParseHelper<'a>: Sized {
    fn parse_inline_plain(self) -> Vec<Event<'a>>;
fn parse_plain(self) -> Vec<Event<'a>>; fn parse_inline(self) -> Vec<BookEvent<'a>> { ... }
fn parse(self) -> Vec<BookEvent<'a>> { ... }
fn parse_and_remove_initial_title_plain(
        self
    ) -> (Option<Vec<Event<'a>>>, Vec<Event<'a>>) { ... }
fn parse_and_remove_initial_title(
        self
    ) -> (Option<Vec<BookEvent<'a>>>, Vec<BookEvent<'a>>) { ... } }

A helper trait to parse source material

Required methods

fn parse_inline_plain(self) -> Vec<Event<'a>>

parse into inline Events with the appropriate lifetime,

fn parse_plain(self) -> Vec<Event<'a>>

parse into Events with the appropriate lifetime, flattening footnotes if required

Loading content...

Provided methods

fn parse_inline(self) -> Vec<BookEvent<'a>>

parse into inline BookEvents with the appropriate lifetime,

fn parse(self) -> Vec<BookEvent<'a>>

parse into BookEvents with the appropriate lifetime, flattening footnotes if required

fn parse_and_remove_initial_title_plain(
    self
) -> (Option<Vec<Event<'a>>>, Vec<Event<'a>>)

parse into Events and split off any intial title

fn parse_and_remove_initial_title(
    self
) -> (Option<Vec<BookEvent<'a>>>, Vec<BookEvent<'a>>)

parse into BookEvents and split off any intial title

Loading content...

Implementations on Foreign Types

impl<'a> ParseHelper<'a> for String[src]

impl<'a> ParseHelper<'a> for &'a str[src]

impl<'a> ParseHelper<'a> for Cow<'a, str>[src]

impl<'a> ParseHelper<'a> for Vec<Event<'a>>[src]

Loading content...

Implementors

impl<'a> ParseHelper<'a> for CowStr<'a>[src]

Loading content...