pub enum SectionKind {
Show 17 variants
HalfTitle,
TitlePage,
Copyright,
Dedication,
Epigraph,
TableOfContents,
Foreword,
Preface,
Prologue,
Part,
Chapter,
Epilogue,
Afterword,
Acknowledgments,
AboutTheAuthor,
AlsoBy,
Other,
}Expand description
What role a section plays. Drives page layout (display pages, running
heads, numbering) and EPUB semantics (epub:type).
Variants§
HalfTitle
TitlePage
Copyright
Dedication
Epigraph
TableOfContents
Foreword
Preface
Prologue
Part
Chapter
Epilogue
Afterword
Acknowledgments
AboutTheAuthor
AlsoBy
Other
Anything else, with the heading as given.
Implementations§
Source§impl SectionKind
impl SectionKind
pub fn is_front_matter(self) -> bool
pub fn is_back_matter(self) -> bool
Trait Implementations§
Source§impl Clone for SectionKind
impl Clone for SectionKind
impl Copy for SectionKind
Source§impl Debug for SectionKind
impl Debug for SectionKind
Source§impl<'de> Deserialize<'de> for SectionKind
impl<'de> Deserialize<'de> for SectionKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SectionKind
Source§impl Hash for SectionKind
impl Hash for SectionKind
Source§impl PartialEq for SectionKind
impl PartialEq for SectionKind
Source§impl Serialize for SectionKind
impl Serialize for SectionKind
impl StructuralPartialEq for SectionKind
Auto Trait Implementations§
impl Freeze for SectionKind
impl RefUnwindSafe for SectionKind
impl Send for SectionKind
impl Sync for SectionKind
impl Unpin for SectionKind
impl UnsafeUnpin for SectionKind
impl UnwindSafe for SectionKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.