[][src]Struct web_sys::CustomElementRegistry

#[repr(transparent)]pub struct CustomElementRegistry { /* fields omitted */ }

The CustomElementRegistry class.

MDN Documentation

This API requires the following crate features to be activated: CustomElementRegistry

Methods

impl CustomElementRegistry[src]

pub fn define(
    &self,
    name: &str,
    function_constructor: &Function
) -> Result<(), JsValue>
[src]

The define() method.

MDN Documentation

This API requires the following crate features to be activated: CustomElementRegistry

impl CustomElementRegistry[src]

pub fn define_with_options(
    &self,
    name: &str,
    function_constructor: &Function,
    options: &ElementDefinitionOptions
) -> Result<(), JsValue>
[src]

The define() method.

MDN Documentation

This API requires the following crate features to be activated: CustomElementRegistry, ElementDefinitionOptions

impl CustomElementRegistry[src]

pub fn get(&self, name: &str) -> JsValue[src]

The get() method.

MDN Documentation

This API requires the following crate features to be activated: CustomElementRegistry

impl CustomElementRegistry[src]

pub fn upgrade(&self, root: &Node)[src]

The upgrade() method.

MDN Documentation

This API requires the following crate features to be activated: CustomElementRegistry, Node

impl CustomElementRegistry[src]

pub fn when_defined(&self, name: &str) -> Result<Promise, JsValue>[src]

The whenDefined() method.

MDN Documentation

This API requires the following crate features to be activated: CustomElementRegistry

Trait Implementations

impl AsRef<CustomElementRegistry> for CustomElementRegistry[src]

impl AsRef<JsValue> for CustomElementRegistry[src]

impl AsRef<Object> for CustomElementRegistry[src]

impl Clone for CustomElementRegistry[src]

impl Debug for CustomElementRegistry[src]

impl Deref for CustomElementRegistry[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for CustomElementRegistry[src]

impl From<CustomElementRegistry> for JsValue[src]

impl From<CustomElementRegistry> for Object[src]

impl From<JsValue> for CustomElementRegistry[src]

impl FromWasmAbi for CustomElementRegistry[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for CustomElementRegistry[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a CustomElementRegistry[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for CustomElementRegistry[src]

impl OptionFromWasmAbi for CustomElementRegistry[src]

impl OptionIntoWasmAbi for CustomElementRegistry[src]

impl<'a> OptionIntoWasmAbi for &'a CustomElementRegistry[src]

impl PartialEq<CustomElementRegistry> for CustomElementRegistry[src]

impl RefFromWasmAbi for CustomElementRegistry[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<CustomElementRegistry>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl StructuralEq for CustomElementRegistry[src]

impl StructuralPartialEq for CustomElementRegistry[src]

impl WasmDescribe for CustomElementRegistry[src]

Auto Trait Implementations

impl RefUnwindSafe for CustomElementRegistry

impl !Send for CustomElementRegistry

impl !Sync for CustomElementRegistry

impl Unpin for CustomElementRegistry

impl UnwindSafe for CustomElementRegistry

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.