Skip to main content

CreateUAShadowRootForSelf

Trait CreateUAShadowRootForSelf 

Source
pub(crate) trait CreateUAShadowRootForSelf<ShadowTree>: NodeTraits + DerivedFrom<Node> {
    // Required method
    fn shadow_tree(&self, cx: &mut JSContext) -> Ref<'_, ShadowTree>;

    // Provided method
    fn create_element_in_ua_shadowroot(
        &self,
        cx: &mut JSContext,
        local_name: LocalName,
    ) -> DomRoot<Element> { ... }
}

Required Methods§

Source

fn shadow_tree(&self, cx: &mut JSContext) -> Ref<'_, ShadowTree>

Provided Methods§

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<ShadowTree, E: UAShadowRoot<ShadowTree> + Castable + DerivedFrom<Element> + DerivedFrom<Node>> CreateUAShadowRootForSelf<ShadowTree> for E