pub(crate) trait DataTransferItemListMethods<D: DomTypes> {
    // Required methods
    fn Length(&self) -> u32;
    fn Add(
        &self,
        data: DOMString,
        type_: DOMString,
        _can_gc: CanGc,
    ) -> Fallible<Option<DomRoot<D::DataTransferItem>>>;
    fn Add_(
        &self,
        data: &D::File,
        _can_gc: CanGc,
    ) -> Fallible<Option<DomRoot<D::DataTransferItem>>>;
    fn Remove(&self, index: u32) -> Fallible<()>;
    fn Clear(&self);
    fn IndexedGetter(
        &self,
        index: u32,
        _can_gc: CanGc,
    ) -> Option<DomRoot<D::DataTransferItem>>;
}

Required Methods§

Source

fn Length(&self) -> u32

Source

fn Add( &self, data: DOMString, type_: DOMString, _can_gc: CanGc, ) -> Fallible<Option<DomRoot<D::DataTransferItem>>>

Source

fn Add_( &self, data: &D::File, _can_gc: CanGc, ) -> Fallible<Option<DomRoot<D::DataTransferItem>>>

Source

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

Source

fn Clear(&self)

Source

fn IndexedGetter( &self, index: u32, _can_gc: CanGc, ) -> Option<DomRoot<D::DataTransferItem>>

Implementors§