pub struct Node {
pub kind: NodeKind,
pub position: Option<Position>,
/* private fields */
}Expand description
A single node in a Document’s arena: its kind/payload, its source
position (None for the document node itself and for any node a
tree-construction algorithm synthesizes rather than parses — e.g. an
implied <html>/<head>/<body> — Some for everything else), and
its tree-navigation links.
Fields§
§kind: NodeKind§position: Option<Position>The node’s position in the original input, or None for
synthesized nodes (see the struct-level doc comment above).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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