pub struct WebEditorCustomElement { /* private fields */ }
Implementations§
Source§impl WebEditorCustomElement
impl WebEditorCustomElement
pub fn new(node: JsValue) -> Self
pub fn observed_attributes() -> JsValue
pub fn attribute_changed_callback( &self, attr_name: &str, old_value: JsValue, new_value: JsValue, )
pub fn connected_callback(&mut self)
pub fn disconnected_callback(&mut self)
pub fn adopted_callback(&mut self)
pub fn register()
Trait Implementations§
Source§impl From<WebEditorCustomElement> for JsValue
impl From<WebEditorCustomElement> for JsValue
Source§fn from(value: WebEditorCustomElement) -> Self
fn from(value: WebEditorCustomElement) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WebEditorCustomElement
impl FromWasmAbi for WebEditorCustomElement
Source§impl IntoWasmAbi for WebEditorCustomElement
impl IntoWasmAbi for WebEditorCustomElement
Source§impl RefFromWasmAbi for WebEditorCustomElement
impl RefFromWasmAbi for WebEditorCustomElement
Source§type Anchor = RcRef<WebEditorCustomElement>
type Anchor = RcRef<WebEditorCustomElement>
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.Source§impl VectorFromWasmAbi for WebEditorCustomElement
impl VectorFromWasmAbi for WebEditorCustomElement
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WebEditorCustomElement]>
Source§impl VectorIntoJsValue for WebEditorCustomElement
impl VectorIntoJsValue for WebEditorCustomElement
fn vector_into_jsvalue(vector: Box<[WebEditorCustomElement]>) -> JsValue
Source§impl VectorIntoWasmAbi for WebEditorCustomElement
impl VectorIntoWasmAbi for WebEditorCustomElement
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WebEditorCustomElement]>) -> Self::Abi
Source§impl WasmDescribeVector for WebEditorCustomElement
impl WasmDescribeVector for WebEditorCustomElement
impl SupportsConstructor for WebEditorCustomElement
impl SupportsInstanceProperty for WebEditorCustomElement
impl SupportsStaticProperty for WebEditorCustomElement
Auto Trait Implementations§
impl Freeze for WebEditorCustomElement
impl !RefUnwindSafe for WebEditorCustomElement
impl !Send for WebEditorCustomElement
impl !Sync for WebEditorCustomElement
impl Unpin for WebEditorCustomElement
impl !UnwindSafe for WebEditorCustomElement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.