Struct rdom::node_list::NodeList[][src]

pub struct NodeList {
    pub context: SandboxMemberBehaviorStorage,
    // some fields omitted
}

Represents a NodeList structure, which may be either “live” or “static”. Note that these are not strongly retained by the Sandbox, and there is no guarantee they will work after the Sandbox has been dropped. So, to use a NodeList, make sure you have retained both the Sandbox and an Rc to the NodeList before performing any operations.

Also note that retaining a NodeList may cause other Nodes to be retained. For example, some_node.child_nodes() and retaining the return value will cause some_node to be retained.

Fields

context: SandboxMemberBehaviorStorage

Reference to the sandbox to which this NodeList belongs

Implementations

impl NodeList[src]

pub fn length(&self) -> usize[src]

NodeList#length

pub fn item(&self, index: usize) -> Option<AnyNodeArc>[src]

NodeList#item

pub fn get(&self, index: usize) -> Option<AnyNodeArc>[src]

NodeList#get

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.