Type Definition js::jsapi::HandleValue
[−]
[src]
type HandleValue = Handle<Value>;
Methods
impl HandleValue
[src]
pub fn null() -> HandleValue
[src]
pub fn undefined() -> HandleValue
[src]
Trait Implementations
impl FromJSValConvertible for HandleValue
[src]
type Config = ()
Optional configurable behaviour switch; use () for no configuration.
unsafe fn from_jsval(
cx: *mut JSContext,
value: HandleValue,
_option: ()
) -> Result<ConversionResult<HandleValue>, ()>
[src]
cx: *mut JSContext,
value: HandleValue,
_option: ()
) -> Result<ConversionResult<HandleValue>, ()>
Convert val
to type Self
. Optional configuration of type T
can be passed as the option
argument. If it returns Err(())
, a JSAPI exception is pending. If it returns Ok(Failure(reason))
, there is no pending JSAPI exception. Read more
impl ToJSValConvertible for HandleValue
[src]
unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue)
[src]
Convert self
to a JSVal
. JSAPI failure causes a panic.