pub struct Node {
pub role: Role,
pub parent: Option<NodeId>,
pub first_child: Option<NodeId>,
pub next_sibling: Option<NodeId>,
pub style: StyleId,
pub text: TextRange,
}Expand description
A node in the IR tree.
Fields§
§role: RoleSemantic role.
parent: Option<NodeId>Parent node (None for root).
first_child: Option<NodeId>First child node.
next_sibling: Option<NodeId>Next sibling node.
style: StyleIdStyle identifier.
text: TextRangeText content range (only for Text nodes).
Implementations§
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