Struct html5ever::rcdom::Handle
[−]
[src]
pub struct Handle(_);
Reference to a DOM node.
Methods from Deref<Target=Rc<RefCell<Node>>>
fn downgrade(&self) -> Weak<T>
Downgrades the Rc<T>
to a Weak<T>
reference.
Examples
use rc::Rc; let five = Rc::new(5); let weak_five = five.downgrade();
fn make_unique(&mut self) -> &mut T
Make a mutable reference from the given Rc<T>
.
This is also referred to as a copy-on-write operation because the inner data is cloned if the reference count is greater than one.
Examples
use rc::Rc; let mut five = Rc::new(5); let mut_five = five.make_unique();