Struct leptos::ev::undelegated
source · pub struct undelegated<Ev>(pub Ev)
where
Ev: EventDescriptor;
Expand description
Overrides the EventDescriptor::bubbles
method to always return
false
, which forces the event to not be globally delegated.
Tuple Fields§
§0: Ev
Trait Implementations§
source§impl<Ev> Clone for undelegated<Ev>where
Ev: Clone + EventDescriptor,
impl<Ev> Clone for undelegated<Ev>where Ev: Clone + EventDescriptor,
source§fn clone(&self) -> undelegated<Ev>
fn clone(&self) -> undelegated<Ev>
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<Ev> EventDescriptor for undelegated<Ev>where
Ev: EventDescriptor,
impl<Ev> EventDescriptor for undelegated<Ev>where Ev: EventDescriptor,
§type EventType = <Ev as EventDescriptor>::EventType
type EventType = <Ev as EventDescriptor>::EventType
The
web_sys
event type, such as web_sys::MouseEvent
.source§fn event_delegation_key(&self) -> Cow<'static, str>
fn event_delegation_key(&self) -> Cow<'static, str>
The key used for event delegation.
Auto Trait Implementations§
impl<Ev> RefUnwindSafe for undelegated<Ev>where Ev: RefUnwindSafe,
impl<Ev> Send for undelegated<Ev>where Ev: Send,
impl<Ev> Sync for undelegated<Ev>where Ev: Sync,
impl<Ev> Unpin for undelegated<Ev>where Ev: Unpin,
impl<Ev> UnwindSafe for undelegated<Ev>where Ev: 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