pub struct Callback<Args, Ret = ()> { /* private fields */ }
Expand description
A callback function that can be passed as a prop
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Args, Ret> Freeze for Callback<Args, Ret>
impl<Args, Ret = ()> !RefUnwindSafe for Callback<Args, Ret>
impl<Args, Ret> Send for Callback<Args, Ret>
impl<Args, Ret> Sync for Callback<Args, Ret>
impl<Args, Ret> Unpin for Callback<Args, Ret>
impl<Args, Ret = ()> !UnwindSafe for Callback<Args, Ret>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Event for T
impl<T> Event for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert to Any for downcasting (mutable)
Source§fn event_type(&self) -> &'static str
fn event_type(&self) -> &'static str
Get the event type name
Source§impl<T> Props for T
impl<T> Props for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert to mutable Any for downcasting