pub struct NodeRef(/* private fields */);Expand description
A reference to a Node in the DOM.
Implementations§
Source§impl NodeRef
impl NodeRef
Sourcepub fn get(&self) -> Node
pub fn get(&self) -> Node
Gets the Node stored inside the NodeRef.
§Panics
Panics if the NodeRef is not set yet.
For a non panicking version, see NodeRef::try_get.
Trait Implementations§
impl Eq for NodeRef
impl StructuralPartialEq for NodeRef
Auto Trait Implementations§
impl Freeze for NodeRef
impl !RefUnwindSafe for NodeRef
impl !Send for NodeRef
impl !Sync for NodeRef
impl Unpin for NodeRef
impl !UnwindSafe for NodeRef
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