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