mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-13 13:01:22 +00:00
Add support for FnOnce to Closure
This commit is contained in:
@ -657,7 +657,9 @@ pub fn throw_val(s: JsValue) -> ! {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```no_run
|
||||
/// ```
|
||||
/// use wasm_bindgen::prelude::*;
|
||||
///
|
||||
/// // If the value is `Option::Some` or `Result::Ok`, then we just get the
|
||||
/// // contained `T` value.
|
||||
/// let x = Some(42);
|
||||
|
Reference in New Issue
Block a user