pub struct Handlers<MathField> {
pub edit: Option<Closure<dyn FnMut()>>,
pub _phantom: PhantomData<MathField>,
}Expand description
https://docs.mathquill.com/en/latest/Config/#handlers
You will have to think about manual memory management: https://rustwasm.github.io/wasm-bindgen/reference/passing-rust-closures-to-js.html#heap-allocated-closures
Fields§
§edit: Option<Closure<dyn FnMut()>>§_phantom: PhantomData<MathField>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<MathField> Freeze for Handlers<MathField>
impl<MathField> !RefUnwindSafe for Handlers<MathField>
impl<MathField> !Send for Handlers<MathField>
impl<MathField> !Sync for Handlers<MathField>
impl<MathField> Unpin for Handlers<MathField>where
MathField: Unpin,
impl<MathField> !UnwindSafe for Handlers<MathField>
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