Struct stdweb::web::NodeList
[−]
[src]
pub struct NodeList(_);
NodeList
objects are collections of nodes such as those returned by properties
such as INode::child_nodes and the
Document::query_selector_all method.
In some cases, the NodeList
is a live collection, which means that changes in the DOM
are reflected in the collection - for example INode::child_nodes is live.
In other cases, the NodeList
is a static collection, meaning any subsequent change
in the DOM does not affect the content of the collection - for example
Document::query_selector_all returns
a static NodeList
.
Methods
impl NodeList
[src]
fn len(&self) -> usize
Returns the number of Nodes contained in this list.
fn iter(&self) -> NodeIter
Returns an iterator over the list.
Trait Implementations
impl Debug for NodeList
[src]
impl Clone for NodeList
[src]
fn clone(&self) -> Self
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 AsRef<Reference> for NodeList
[src]
impl<T: TryInto<Reference>> TryFrom<T> for NodeList where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,
[src]
<T as TryInto<Reference>>::Error: Into<Box<Error>>,
type Error = Box<Error>
The type returned in the event of a conversion error.
fn try_from(value: T) -> Result<Self, Self::Error>
Performs the conversion.
impl IntoIterator for NodeList
[src]
type Item = Node
The type of the elements being iterated over.
type IntoIter = NodeIter
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more