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();

Trait Implementations

impl Debug for Handle
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Handle
[src]

fn clone(&self) -> Handle

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Deref for Handle
[src]

type Target = Rc<RefCell<Node>>

The resulting type after dereferencing

fn deref(&self) -> &Rc<RefCell<Node>>

The method called to dereference a value

impl Serializable for Handle
[src]

fn serialize<'wr, Wr: Write>(&self, serializer: &mut Serializer<'wr, Wr>, traversal_scope: TraversalScope) -> Result<()>