Type Definition comrak::nodes::AstNode

source ·
pub type AstNode<'a> = Node<'a, RefCell<Ast>>;
Expand description

The type of a node within the document.

It is bound by the lifetime 'a, which corresponds to the Arena nodes are allocated in. AstNodes are almost handled as a reference itself bound by 'a. Child Asts are wrapped in RefCell for interior mutability.