pub struct Ast {
pub value: NodeValue,
pub sourcepos: Sourcepos,
/* private fields */
}
Expand description
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.
sourcepos: Sourcepos
The positions in the source document this node comes from.
Implementations§
Trait Implementations§
impl Eq for Ast
impl StructuralEq for Ast
impl StructuralPartialEq for Ast
Auto Trait Implementations§
impl RefUnwindSafe for Ast
impl Send for Ast
impl Sync for Ast
impl Unpin for Ast
impl UnwindSafe for Ast
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more