[][src]Enum bookbinder_ast::SemanticRole

pub enum SemanticRole {
    Halftitle,
    Copyrightpage,
    Titlepage,
    Dedication,
    Foreword,
    Afterword,
    Introduction,
    Colophon,
    Epigraph,
    Acknowledgements,
    Appendix,
    Chapter,
    Part,
    Preface,
}

Specification of a section's semantic role, such as being a foreword or a chapter. These are taken from Epub 3.2's structural semantics

Variants

Halftitle
Copyrightpage
Titlepage
Dedication
Foreword
Afterword
Introduction
Colophon
Epigraph
Acknowledgements
Appendix
Chapter
Part
Preface

Implementations

impl SemanticRole[src]

pub const fn get_label(self) -> Option<&'static str>[src]

A suitable label for this role, if any, which can be used -- for example -- in labelling chapter headings

For example, a TitlePage has no label, but an Introduction is labelled Introduction

At some future point, this will be changed to allow multilingualism.

Trait Implementations

impl Clone for SemanticRole[src]

impl Copy for SemanticRole[src]

impl Debug for SemanticRole[src]

impl Hash for SemanticRole[src]

impl PartialEq<SemanticRole> for SemanticRole[src]

impl StructuralPartialEq for SemanticRole[src]

Auto Trait Implementations

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> HashToString for T where
    T: Hash
[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> TempFilePath for T where
    T: HashToString
[src]

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>,