Struct crowbook::Chapter
[−]
[src]
pub struct Chapter { pub number: Number, pub filename: String, pub content: Vec<Token>, }
Represents the content of a chapter.
Fields
number: Number
The numbering scheme of this chapter.
filename: String
The filename of this chapter (used for inline links)
content: Vec<Token>
The (already parsed) content of this chapter
Methods
impl Chapter
[src]
fn new<S: Into<String>>(
number: Number,
filename: S,
content: Vec<Token>
) -> Chapter
[src]
number: Number,
filename: S,
content: Vec<Token>
) -> Chapter
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 ofToken
, as returned byParser
.