pub fn forget(self) {
        unsafe {
            let idx = (*self.js.get()).idx;
            if idx != !0 {
                super::__wbindgen_cb_forget(idx);
            }
            mem::forget(self);
        }
    }
/// Leaks this `Closure` to ensure it remains valid for the duration of the
/// entire program.
///
/// > **Note**: this function will leak memory. It should be used sparingly
/// > to ensure the memory leak doesn't affect the program too much.
///
/// When a `Closure` is dropped it will invalidate the associated JS
/// closure, but this isn't always desired. Some callbacks are alive for
/// the entire duration of the program, so this can be used to conveniently
/// leak this instance of `Closure` while performing as much internal
/// cleanup as it can.
Leaks this `Closure` to ensure it remains valid for the duration of the
entire program.

> **Note**: this function will leak memory. It should be used sparingly
> to ensure the memory leak doesn't affect the program too much.

When a `Closure` is dropped it will invalidate the associated JS
closure, but this isn't always desired. Some callbacks are alive for
the entire duration of the program, so this can be used to conveniently
leak this instance of `Closure` while performing as much internal
cleanup as it can.
Leaks this ` Closure ` to ensure it remains valid for the duration of the entire program . > ** Note ** : this function will leak memory . It should be used sparingly > to ensure the memory leak doesn ' t affect the program too much . When a ` Closure ` is dropped it will invalidate the associated JS closure but this isn ' t always desired . Some callbacks are alive for the entire duration of the program so this can be used to conveniently leak this instance of ` Closure ` while performing as much internal cleanup as it can .
pub fn forget(self) {
        unsafe {
            let idx = (*self.js.get()).idx;
            if idx != !0 {
                super::__wbindgen_cb_forget(idx);
            }
            mem::forget(self);
        }
    }
pub fn forget ( self ) { unsafe { let idx = ( * self . js . get ( ) ) . idx ; if idx != ! 0 { super :: __wbindgen_cb_forget ( idx ) ; } mem :: forget ( self ) ; } }
Leaks this `Closure` to ensure it remains valid for the duration of the
entire program.
Leaks this ` Closure ` to ensure it remains valid for the duration of the entire program .
self
self