pub struct HandlerList<F: ?Sized> { /* private fields */ }Expand description
A list of event handlers that tolerates being modified while it is being invoked: invocation works on a snapshot, and the snapshot is only copied when the list actually changes.
Implementations§
Source§impl<F: ?Sized> HandlerList<F>
impl<F: ?Sized> HandlerList<F>
pub fn new() -> Self
A list whose tokens come from ids, a counter shared with other
lists: tokens across all of them increase in subscription order.
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<F> !Freeze for HandlerList<F>
impl<F> !RefUnwindSafe for HandlerList<F>
impl<F> !Send for HandlerList<F>
impl<F> !Sync for HandlerList<F>
impl<F> !UnwindSafe for HandlerList<F>
impl<F> Unpin for HandlerList<F>
impl<F> UnsafeUnpin for HandlerList<F>
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more