pub struct EventAttribFn(pub Rc<dyn AsRef<JsValue>>);Expand description
A handler for an event, such the closure in onmyevent = || {}.
Tuple Fields§
§0: Rc<dyn AsRef<JsValue>>Implementations§
Source§impl EventAttribFn
impl EventAttribFn
Trait Implementations§
Source§impl Clone for EventAttribFn
impl Clone for EventAttribFn
Source§fn clone(&self) -> EventAttribFn
fn clone(&self) -> EventAttribFn
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventAttribFn
impl Debug for EventAttribFn
Auto Trait Implementations§
impl !RefUnwindSafe for EventAttribFn
impl !Send for EventAttribFn
impl !Sync for EventAttribFn
impl !UnwindSafe for EventAttribFn
impl Freeze for EventAttribFn
impl Unpin for EventAttribFn
impl UnsafeUnpin for EventAttribFn
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