pub trait DataTransferItemListMethods<D: DomTypes> {
    // Required methods
    fn Length(&self) -> u32;
    fn Add(
        &self,
        data: DOMString,
        type_: DOMString,
    ) -> Result<Option<Root<Dom<DataTransferItem>>>, Error>;
    fn Add_(
        &self,
        data: &File,
    ) -> Result<Option<Root<Dom<DataTransferItem>>>, Error>;
    fn Remove(&self, index: u32) -> Result<(), Error>;
    fn Clear(&self);
    fn IndexedGetter(&self, index: u32) -> Option<Root<Dom<DataTransferItem>>>;
}

Required Methods§

source

fn Length(&self) -> u32

source

fn Add( &self, data: DOMString, type_: DOMString, ) -> Result<Option<Root<Dom<DataTransferItem>>>, Error>

source

fn Add_( &self, data: &File, ) -> Result<Option<Root<Dom<DataTransferItem>>>, Error>

source

fn Remove(&self, index: u32) -> Result<(), Error>

source

fn Clear(&self)

source

fn IndexedGetter(&self, index: u32) -> Option<Root<Dom<DataTransferItem>>>

Implementors§