Struct stdweb::web::FileList [−][src]
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.
Methods
impl FileList
[src]
impl FileList
pub fn len(&self) -> u32
[src]
pub fn len(&self) -> u32
Returns the number of Files contained in this list.
pub fn iter(&self) -> FileIter
[src]
pub fn iter(&self) -> FileIter
Returns an iterator over the list.
Trait Implementations
impl Clone for FileList
[src]
impl Clone for FileList
fn clone(&self) -> FileList
[src]
fn clone(&self) -> FileList
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for FileList
[src]
impl Debug for FileList
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for FileList
[src]
impl PartialEq for FileList
fn eq(&self, other: &FileList) -> bool
[src]
fn eq(&self, other: &FileList) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &FileList) -> bool
[src]
fn ne(&self, other: &FileList) -> bool
This method tests for !=
.
impl Eq for FileList
[src]
impl Eq for FileList
impl InstanceOf for FileList
[src]
impl InstanceOf for FileList
fn instance_of(reference: &Reference) -> bool
[src]
fn instance_of(reference: &Reference) -> bool
Checks whenever a given Reference if of type Self
.
impl AsRef<Reference> for FileList
[src]
impl AsRef<Reference> for FileList
impl ReferenceType for FileList
[src]
impl ReferenceType for FileList
unsafe fn from_reference_unchecked(reference: Reference) -> Self
[src]
unsafe fn from_reference_unchecked(reference: Reference) -> Self
Converts a given reference into a concrete reference-like wrapper. Doesn't do any type checking; highly unsafe to use! Read more
impl From<FileList> for Reference
[src]
impl From<FileList> for Reference
impl TryFrom<FileList> for Reference
[src]
impl TryFrom<FileList> for Reference
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: FileList) -> Result<Self, Self::Error>
[src]
fn try_from(value: FileList) -> Result<Self, Self::Error>
Performs the conversion.
impl TryFrom<Reference> for FileList
[src]
impl TryFrom<Reference> for FileList
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: Reference) -> Result<Self, Self::Error>
[src]
fn try_from(reference: Reference) -> Result<Self, Self::Error>
Performs the conversion.
impl<'_r> TryFrom<&'_r Reference> for FileList
[src]
impl<'_r> TryFrom<&'_r Reference> for FileList
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: &Reference) -> Result<Self, Self::Error>
[src]
fn try_from(reference: &Reference) -> Result<Self, Self::Error>
Performs the conversion.
impl TryFrom<Value> for FileList
[src]
impl TryFrom<Value> for FileList
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error>
[src]
fn try_from(value: Value) -> Result<Self, Self::Error>
Performs the conversion.
impl<'_r> TryFrom<&'_r Value> for FileList
[src]
impl<'_r> TryFrom<&'_r Value> for FileList
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &Value) -> Result<Self, Self::Error>
[src]
fn try_from(value: &Value) -> Result<Self, Self::Error>
Performs the conversion.
impl JsSerialize for FileList
[src]
impl JsSerialize for FileList
impl IntoIterator for FileList
[src]
impl IntoIterator for FileList
type Item = File
The type of the elements being iterated over.
type IntoIter = FileIter
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl<'a> IntoIterator for &'a FileList
[src]
impl<'a> IntoIterator for &'a FileList