pub 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§
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>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".