Struct wasm_react::callback::Void
source · [−]pub struct Void;
Expand description
A helper struct to simulate a JS-interoperable Callback
with no input
arguments.
let callback: Callback<Void> = Callback::new(|_: Void| ());
Trait Implementations
sourceimpl FromWasmAbi for Void
impl FromWasmAbi for Void
impl Copy for Void
impl Eq for Void
impl StructuralEq for Void
impl StructuralPartialEq for Void
Auto Trait Implementations
impl RefUnwindSafe for Void
impl Send for Void
impl Sync for Void
impl Unpin for Void
impl UnwindSafe for Void
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more