pub trait ClipboardItemMethods<D>where
    D: DomTypes,{
    // Required methods
    fn PresentationStyle(&self) -> PresentationStyle;
    fn Types(
        &self,
        cx: JSContext,
        _can_gc: CanGc,
        retval: MutableHandle<'_, Value>,
    );
    fn GetType(
        &self,
        type_: DOMString,
        _can_gc: CanGc,
    ) -> Result<Rc<<D as DomTypes>::Promise>, Error>;
    fn Supports(global: &<D as DomTypes>::Window, type_: DOMString) -> bool;
    fn Constructor(
        global: &<D as DomTypes>::Window,
        proto: Option<Handle<'_, *mut JSObject>>,
        can_gc: CanGc,
        items: Record<DOMString, Rc<<D as DomTypes>::Promise>>,
        options: &ClipboardItemOptions,
    ) -> Result<Root<Dom<<D as DomTypes>::ClipboardItem>>, Error>;
}Required Methods§
fn PresentationStyle(&self) -> PresentationStyle
fn Types(&self, cx: JSContext, _can_gc: CanGc, retval: MutableHandle<'_, Value>)
fn GetType( &self, type_: DOMString, _can_gc: CanGc, ) -> Result<Rc<<D as DomTypes>::Promise>, Error>
fn Supports(global: &<D as DomTypes>::Window, type_: DOMString) -> bool
fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, items: Record<DOMString, Rc<<D as DomTypes>::Promise>>, options: &ClipboardItemOptions, ) -> Result<Root<Dom<<D as DomTypes>::ClipboardItem>>, Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.