[][src]Trait bookbinder_ast::helpers::BookEventIteratorHelper

pub trait BookEventIteratorHelper<'a> {
    fn collate_epigraph(&mut self) -> CollatedEpigraph<'a>;
fn collate_division_header<T>(
        &mut self,
        is_starred: bool
    ) -> CollatedHeader<'a, T>;
fn collate_titlepage(&mut self) -> CollatedTitlePage<'a>;
fn collate_image(
        &mut self,
        dest: CowStr<'a>,
        alt: CowStr<'a>
    ) -> CollatedImage<'a>;
fn collect_plain_until_end_of_footnote(&mut self) -> Vec<Event<'a>>; }

A trait which abstracts out some common requirements when dealing with an Iterator of BookEvents.

Required methods

fn collate_epigraph(&mut self) -> CollatedEpigraph<'a>

collect events to the end of an epigraph and report on the contents

fn collate_division_header<T>(
    &mut self,
    is_starred: bool
) -> CollatedHeader<'a, T>

collate events to the end of a header and report on the contents

fn collate_titlepage(&mut self) -> CollatedTitlePage<'a>

collate events to the end of a titlepage and report on the contents

fn collate_image(
    &mut self,
    dest: CowStr<'a>,
    alt: CowStr<'a>
) -> CollatedImage<'a>

collate events to the end of an image and report on the contents

fn collect_plain_until_end_of_footnote(&mut self) -> Vec<Event<'a>>

collect extended pulldown events until the end of a flattened footnote

Loading content...

Implementors

impl<'a, I> BookEventIteratorHelper<'a> for I where
    I: Iterator<Item = BookEvent<'a>>, 
[src]

Loading content...