Struct comrak::nodes::Ast
[−]
[src]
pub struct Ast { pub value: NodeValue, pub start_line: u32, pub start_column: usize, pub end_line: u32, pub end_column: usize, // some fields omitted }
A single node in the CommonMark AST.
The struct contains metadata about the node's position in the original document, and the core
enum, NodeValue
.
Fields
value: NodeValue
The node value itself.
start_line: u32
The line in the input document the node starts at.
start_column: usize
The column in the input document the node starts at.
end_line: u32
The line in the input document the node ends at.
end_column: usize
The column in the input document the node ends at.
Trait Implementations
impl Debug for Ast
[src]
impl Clone for Ast
[src]
fn clone(&self) -> Ast
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more