Struct crowbook::Chapter [] [src]

pub struct Chapter {
    pub number: Number,
    pub filename: String,
    pub content: Vec<Token>,
}

Represents the content of a chapter.

Fields

The numbering scheme of this chapter.

The filename of this chapter (used for inline links)

The (already parsed) content of this chapter

Methods

impl Chapter
[src]

[src]

Creates a new chapter

Arguments

  • number: the numbering scheme, to specify if this is a numbered chapter or not.
  • filename: the path of the Markdown source file of the chapter.
  • content: a vector of Token, as returned by Parser.

Trait Implementations

impl Debug for Chapter
[src]

[src]

Formats the value using the given formatter.