pub struct Node {
pub parent: Cell<Option<Weak<Node>>>,
pub children: RefCell<Vec<Rc<Node>, Global>>,
pub data: NodeData,
}
Expand description
A DOM node.
Fields
parent: Cell<Option<Weak<Node>>>
Parent node.
children: RefCell<Vec<Rc<Node>, Global>>
Child nodes of this node.
data: NodeData
Represents this node’s data.
Auto Trait Implementations
impl !RefUnwindSafe for Node
impl !Send for Node
impl !Sync for Node
impl Unpin for Node
impl !UnwindSafe for Node
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more