pub fn symbol(description: Option<&str>) -> JsValue {
        unsafe {
            let ptr = description.map(|s| s.as_ptr()).unwrap_or(ptr::null());
            let len = description.map(|s| s.len()).unwrap_or(0);
            JsValue { idx: __wbindgen_symbol_new(ptr, len) }
        }
    }
/// Creates a new JS symbol with the optional description specified.
///
/// This function will invoke the `Symbol` constructor in JS and return the
/// JS object corresponding to the symbol created.
Creates a new JS symbol with the optional description specified.
This function will invoke the `Symbol` constructor in JS and return the
JS object corresponding to the symbol created.
Creates a new JS symbol with the optional description specified . This function will invoke the ` Symbol ` constructor in JS and return the JS object corresponding to the symbol created .
pub fn symbol(description: Option<&str>) -> JsValue {
        unsafe {
            let ptr = description.map(|s| s.as_ptr()).unwrap_or(ptr::null());
            let len = description.map(|s| s.len()).unwrap_or(0);
            JsValue { idx: __wbindgen_symbol_new(ptr, len) }
        }
    }
pub fn symbol ( description : Option < & str > ) -> JsValue { unsafe { let ptr = description . map ( | s | s . as_ptr ( ) ) . unwrap_or ( ptr :: null ( ) ) ; let len = description . map ( | s | s . len ( ) ) . unwrap_or ( 0 ) ; JsValue { idx : __wbindgen_symbol_new ( ptr , len ) } } }
Creates a new JS symbol with the optional description specified.
Creates a new JS symbol with the optional description specified .
description
Option<&str>
description
Option<&str>