[][src]Trait bookbinder_ast::EventHelper

pub trait EventHelper<'a> {
    fn make_paragraphs_unindented(&mut self);
fn remove_initial_title(&mut self) -> Option<Self>
    where
        Self: Sized
;
fn make_uppercase(&mut self);
fn divide_into_sections(self) -> Vec<BookEvent<'a>>; }

Helper functions for collections of events

Required methods

fn make_paragraphs_unindented(&mut self)

make any paragraphs in this vec unindented

fn remove_initial_title(&mut self) -> Option<Self> where
    Self: Sized

remove an initial top-level header, leaving behind either trailing events or an empty collection if no events followed the header

fn make_uppercase(&mut self)

make plain text in this uppercase

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

divide into semantic sections

Loading content...

Implementations on Foreign Types

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

Loading content...

Implementors

Loading content...