[−][src]Struct stdweb::web::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]
impl NodeList
pub fn len(&self) -> u32 | [src] |
Returns the number of Nodes contained in this list.
pub fn item(&self, index: u32) -> Option<Node> | [src] |
Returns a node from a NodeList by index.
pub fn iter(&self) -> NodeIter | [src] |
Returns an iterator over the list.
Trait Implementations
impl JsSerialize for NodeList
[src]
impl JsSerialize for NodeList
impl TryFrom<NodeList> for Reference
[src]
impl TryFrom<NodeList> for Reference
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: NodeList) -> Result<Self, Self::Error> | [src] |
impl TryFrom<Reference> for NodeList
[src]
impl TryFrom<Reference> for NodeList
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: Reference) -> Result<Self, Self::Error> | [src] |
impl<'_r> TryFrom<&'_r Reference> for NodeList
[src]
impl<'_r> TryFrom<&'_r Reference> for NodeList
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: &Reference) -> Result<Self, Self::Error> | [src] |
impl TryFrom<Value> for NodeList
[src]
impl TryFrom<Value> for NodeList
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error> | [src] |
impl<'_r> TryFrom<&'_r Value> for NodeList
[src]
impl<'_r> TryFrom<&'_r Value> for NodeList
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &Value) -> Result<Self, Self::Error> | [src] |
impl InstanceOf for NodeList
[src]
impl InstanceOf for NodeList
fn instance_of(reference: &Reference) -> bool | [src] |
impl ReferenceType for NodeList
[src]
impl ReferenceType for NodeList
unsafe fn from_reference_unchecked(reference: Reference) -> Self | [src] |
impl From<NodeList> for Reference
[src]
impl From<NodeList> for Reference
impl IntoIterator for NodeList
[src]
impl IntoIterator for NodeList
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] |
impl<'a> IntoIterator for &'a NodeList
[src]
impl<'a> IntoIterator for &'a NodeList
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] |
impl Eq for NodeList
[src]
impl Eq for NodeList
impl PartialEq<NodeList> for NodeList
[src]
impl PartialEq<NodeList> for NodeList
impl AsRef<Reference> for NodeList
[src]
impl AsRef<Reference> for NodeList
impl Clone for NodeList
[src]
impl Clone for NodeList
fn clone(&self) -> NodeList | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Debug for NodeList
[src]
impl Debug for NodeList
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<I> IntoIterator for I where
I: Iterator,
[src]
impl<I> IntoIterator for I where
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I | [src] |
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |