[][src]Enum bookbinder_ast::BookEvent

pub enum BookEvent<'a> {
    BeginSemantic(SemanticRole),
    EndSemantic(SemanticRole),
    Event(Event<'a>),
    BeginDivisionHeader(bool),
    EndDivisionHeader(bool),
    DivisionHeaderLabel {
        text: Option<Cow<'a, str>>,
        number: Option<u8>,
        number_format: NumberFormat,
    },
    DivisionAuthors(Vec<Cow<'a, str>>),
    BeginTitlePage,
    BeginTitlePageTitle,
    EndTitlePageTitle,
    BeginTitlePageSubTitle,
    EndTitlePageSubTitle,
    TitlePageContributors(Vec<(TitlePageContributorRole, Vec<Cow<'a, str>>)>),
    EndTitlePage,
    BeginMainmatter,
    BeginFrontmatter,
    BeginBackmatter,
    BeginEpigraphText,
    EndEpigraphText,
    BeginEpigraphSource,
    EndEpigraphSource,
    Null,
}

A particular event in a book, such as the beginning of a paragraph or a span of text

Variants

BeginSemantic(SemanticRole)
EndSemantic(SemanticRole)
Event(Event<'a>)
BeginDivisionHeader(bool)
EndDivisionHeader(bool)
DivisionHeaderLabel

Fields of DivisionHeaderLabel

text: Option<Cow<'a, str>>

the text of this label

number: Option<u8>

the number of this label

number_format: NumberFormat

the format the number of this label should be in

DivisionAuthors(Vec<Cow<'a, str>>)
BeginTitlePage
BeginTitlePageTitle
EndTitlePageTitle
BeginTitlePageSubTitle
EndTitlePageSubTitle
TitlePageContributors(Vec<(TitlePageContributorRole, Vec<Cow<'a, str>>)>)
EndTitlePage
BeginMainmatter
BeginFrontmatter
BeginBackmatter
BeginEpigraphText
EndEpigraphText
BeginEpigraphSource
EndEpigraphSource
Null

Empty event to be ignored

Trait Implementations

impl<'a> Clone for BookEvent<'a>[src]

impl<'a> Debug for BookEvent<'a>[src]

impl<'a> From<Event<'a>> for BookEvent<'a>[src]

impl<'a> PartialEq<BookEvent<'a>> for BookEvent<'a>[src]

impl<'a> StructuralPartialEq for BookEvent<'a>[src]

impl<'a> TryFrom<BookEvent<'a>> for Event<'a>[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> RefUnwindSafe for BookEvent<'a>

impl<'a> Send for BookEvent<'a>

impl<'a> Sync for BookEvent<'a>

impl<'a> Unpin for BookEvent<'a>

impl<'a> UnwindSafe for BookEvent<'a>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,