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) -> u32[src]
Returns the number of Nodes contained in this list.
fn iter(&self) -> NodeIter[src]
Returns an iterator over the list.
Trait Implementations
impl Clone for NodeList[src]
fn clone(&self) -> NodeList[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for NodeList[src]
impl PartialEq for NodeList[src]
fn eq(&self, __arg_0: &NodeList) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &NodeList) -> bool[src]
This method tests for !=.
impl Eq for NodeList[src]
impl InstanceOf for NodeList[src]
fn instance_of(reference: &Reference) -> bool[src]
Checks whenever a given Reference if of type Self.
impl AsRef<Reference> for NodeList[src]
impl ReferenceType for NodeList[src]
unsafe fn from_reference_unchecked(reference: Reference) -> Self[src]
Converts a given reference into a concrete reference-like wrapper. Doesn't do any type checking; highly unsafe to use! Read more
impl TryFrom<Reference> for NodeList[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: Reference) -> Result<Self, Self::Error>[src]
Performs the conversion.
impl<'_r> TryFrom<&'_r Reference> for NodeList[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: &Reference) -> Result<Self, Self::Error>[src]
Performs the conversion.
impl TryFrom<Value> for NodeList[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error>[src]
Performs the conversion.
impl<'_r> TryFrom<&'_r Value> for NodeList[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &Value) -> Result<Self, Self::Error>[src]
Performs the conversion.
impl JsSerialize for NodeList[src]
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[src]
Creates an iterator from a value. Read more