pub enum TopLevelDivision {
Default,
Section,
Chapter,
Part,
}Expand description
The division a format with a named sectioning hierarchy gives the document’s top heading level.
Variants§
Default
The format’s own choice, a section wherever the choice is offered.
Section
Top-level headings open sections.
Chapter
Top-level headings open chapters, the level below them sections.
Part
Top-level headings open parts, then chapters, then sections.
Implementations§
Source§impl TopLevelDivision
impl TopLevelDivision
Sourcepub fn outer_divisions(self) -> &'static [&'static str]
pub fn outer_divisions(self) -> &'static [&'static str]
The division names the outermost heading levels take, shallowest first. A level past the end of the list opens a section.
Trait Implementations§
Source§impl Clone for TopLevelDivision
impl Clone for TopLevelDivision
Source§fn clone(&self) -> TopLevelDivision
fn clone(&self) -> TopLevelDivision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TopLevelDivision
Source§impl Debug for TopLevelDivision
impl Debug for TopLevelDivision
Source§impl Default for TopLevelDivision
impl Default for TopLevelDivision
Source§fn default() -> TopLevelDivision
fn default() -> TopLevelDivision
Returns the “default value” for a type. Read more
impl Eq for TopLevelDivision
Source§impl PartialEq for TopLevelDivision
impl PartialEq for TopLevelDivision
impl StructuralPartialEq for TopLevelDivision
Auto Trait Implementations§
impl Freeze for TopLevelDivision
impl RefUnwindSafe for TopLevelDivision
impl Send for TopLevelDivision
impl Sync for TopLevelDivision
impl Unpin for TopLevelDivision
impl UnsafeUnpin for TopLevelDivision
impl UnwindSafe for TopLevelDivision
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