Trait Outlinable

Source
pub trait Outlinable: Refable {
    // Required methods
    fn outlined(&self) -> bool;
    fn prefix(&self, numbers: Content) -> Content;
    fn body(&self) -> Content;

    // Provided method
    fn level(&self) -> NonZeroUsize { ... }
}
Expand description

Marks an element as being able to be outlined.

Required Methods§

Source

fn outlined(&self) -> bool

Whether this element should be included in the outline.

Source

fn prefix(&self, numbers: Content) -> Content

Constructs the default prefix given the formatted numbering.

Source

fn body(&self) -> Content

The body of the entry.

Provided Methods§

Source

fn level(&self) -> NonZeroUsize

The nesting level of this element.

Implementors§