[][src]Struct stdweb::web::FileList

pub struct FileList(_);

An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API.

(JavaScript docs)

Methods

impl FileList[src]

pub fn len(&self) -> u32[src]

Returns the number of Files contained in this list.

(JavaScript docs)

pub fn iter(&self) -> FileIter[src]

Returns an iterator over the list.

Trait Implementations

impl JsSerialize for FileList[src]

impl TryFrom<FileList> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Reference> for FileList[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Reference> for FileList[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Value> for FileList[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Value> for FileList[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl InstanceOf for FileList[src]

impl ReferenceType for FileList[src]

impl IntoIterator for FileList[src]

type Item = File

The type of the elements being iterated over.

type IntoIter = FileIter

Which kind of iterator are we turning this into?

impl<'a> IntoIterator for &'a FileList[src]

type Item = File

The type of the elements being iterated over.

type IntoIter = FileIter

Which kind of iterator are we turning this into?

impl Eq for FileList[src]

impl Clone for FileList[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<FileList> for FileList[src]

impl AsRef<Reference> for FileList[src]

impl From<FileList> for Reference[src]

impl Debug for FileList[src]

Auto Trait Implementations

impl Send for FileList

impl Sync for FileList

Blanket Implementations

impl<I> IntoIterator for I where
    I: Iterator
[src]

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?

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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