Struct silkenweb::elements::CustomEvent
source · pub struct CustomEvent<T>(/* private fields */);
Expand description
Wrap a web_sys::CustomEvent
.
This is used when defining custom HTML elements to represent web components.
See custom_html_element
for more details.
Implementations§
source§impl<T: JsCast> CustomEvent<T>
impl<T: JsCast> CustomEvent<T>
sourcepub fn event(&self) -> &CustomEvent
pub fn event(&self) -> &CustomEvent
The original event.
Trait Implementations§
source§impl<T: Clone> Clone for CustomEvent<T>
impl<T: Clone> Clone for CustomEvent<T>
source§fn clone(&self) -> CustomEvent<T>
fn clone(&self) -> CustomEvent<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T> From<CustomEvent> for CustomEvent<T>
impl<T> From<CustomEvent> for CustomEvent<T>
source§fn from(src: CustomEvent) -> Self
fn from(src: CustomEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for CustomEvent<T>
impl<T> RefUnwindSafe for CustomEvent<T>where
T: RefUnwindSafe,
impl<T> !Send for CustomEvent<T>
impl<T> !Sync for CustomEvent<T>
impl<T> Unpin for CustomEvent<T>where
T: Unpin,
impl<T> UnwindSafe for CustomEvent<T>where
T: UnwindSafe,
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more