Struct caribon::Ast
[−]
[src]
#[repr(C)]pub struct Ast { pub words: Vec<Word>, pub begin_head: Option<usize>, pub begin_body: Option<usize>, pub end_body: Option<usize>, }
The internal representation of the document.
Technically the name AST is not really well chosen, since it is not a tree, but mainly a vector of
Word
s plus some additonal informations for HTML parsing, but the idea is that it is the internal
representation of the documentation.
Fields
words: Vec<Word>
Vector of Word
s. The main data of the structure.
begin_head: Option<usize>
Position of
tag, if anybegin_body: Option<usize>
position of
end_body: Option<usize>
position of