pub(crate) trait DataTransferItemMethods<D>where
D: DomTypes,{
// Required methods
fn Kind(&self) -> DOMString;
fn Type(&self) -> DOMString;
fn GetAsString(
&self,
callback: Option<RootedCallback<FunctionStringCallback<D>>>,
);
fn GetAsFile(
&self,
cx: &mut JSContext,
) -> Option<Root<Dom<<D as DomTypes>::File>>>;
fn WebkitGetAsEntry(
&self,
cx: &mut JSContext,
) -> Option<Root<Dom<<D as DomTypes>::FileSystemEntry>>>;
}Required Methods§
fn Kind(&self) -> DOMString
fn Type(&self) -> DOMString
fn GetAsString( &self, callback: Option<RootedCallback<FunctionStringCallback<D>>>, )
fn GetAsFile( &self, cx: &mut JSContext, ) -> Option<Root<Dom<<D as DomTypes>::File>>>
fn WebkitGetAsEntry( &self, cx: &mut JSContext, ) -> Option<Root<Dom<<D as DomTypes>::FileSystemEntry>>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".