Struct stdweb::web::HtmlCollection
[−]
[src]
pub struct HtmlCollection(_);
The HtmlCollection
interface represents a generic collection
(array-like object similar to arguments) of elements (in document order)
and offers methods and properties for selecting from the list.
An HtmlCollection
in the HTML DOM is live; it is automatically
updated when the underlying document is changed.
Methods
impl HtmlCollection
[src]
pub fn len(&self) -> u32
[src]
Returns the number of elements in the collection.
pub fn item(&self, index: u32) -> Option<Element>
[src]
Returns an element from an HtmlCollection
by index.
pub fn iter(&self) -> ElementIter
[src]
Returns an iterator over the collection.
Trait Implementations
impl Clone for HtmlCollection
[src]
fn clone(&self) -> HtmlCollection
[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 HtmlCollection
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for HtmlCollection
[src]
fn eq(&self, __arg_0: &HtmlCollection) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &HtmlCollection) -> bool
[src]
This method tests for !=
.
impl Eq for HtmlCollection
[src]
impl InstanceOf for HtmlCollection
[src]
fn instance_of(reference: &Reference) -> bool
[src]
Checks whenever a given Reference if of type Self
.
impl AsRef<Reference> for HtmlCollection
[src]
impl ReferenceType for HtmlCollection
[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 From<HtmlCollection> for Reference
[src]
fn from(value: HtmlCollection) -> Self
[src]
Performs the conversion.
impl TryFrom<HtmlCollection> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: HtmlCollection) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl TryFrom<Reference> for HtmlCollection
[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 HtmlCollection
[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 HtmlCollection
[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 HtmlCollection
[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 HtmlCollection
[src]
impl IntoIterator for HtmlCollection
[src]
type Item = Element
The type of the elements being iterated over.
type IntoIter = ElementIter
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more