Skip to main content

UAShadowRootHelpers

Trait UAShadowRootHelpers 

Source
trait UAShadowRootHelpers<ShadowTree>: UAShadowRoot<ShadowTree> {
    // Required methods
    fn attach_ua_shadow_root(
        cx: &mut JSContext,
        element: &Element,
    ) -> DomRoot<ShadowRoot>;
    fn create_shadow_tree(&self, cx: &mut JSContext, element: &Element);
}

Required Methods§

Source

fn attach_ua_shadow_root( cx: &mut JSContext, element: &Element, ) -> DomRoot<ShadowRoot>

Source

fn create_shadow_tree(&self, cx: &mut JSContext, element: &Element)

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.

Implementors§

Source§

impl<T: ?Sized + UAShadowRoot<ShadowTree>, ShadowTree> UAShadowRootHelpers<ShadowTree> for T