pub struct Callback<T: 'static>(/* private fields */);Expand description
A component’s event, Vue’s emit: on_change: Callback<f32> in a
#[component] is set with @change=… and fired with on_change.call(v).
The default does nothing.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Callback<T>
impl<T> !Send for Callback<T>
impl<T> !Sync for Callback<T>
impl<T> !UnwindSafe for Callback<T>
impl<T> Freeze for Callback<T>
impl<T> Unpin for Callback<T>
impl<T> UnsafeUnpin for Callback<T>
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