Type Alias mozjs::jsapi::mozilla::CompactPair_Base
source · pub type CompactPair_Base = u8;
Trait Implementations§
source§impl FromJSValConvertible for u8
impl FromJSValConvertible for u8
§type Config = ConversionBehavior
type Config = ConversionBehavior
Optional configurable behaviour switch; use () for no configuration.
source§unsafe fn from_jsval(
cx: *mut JSContext,
val: HandleValue<'_>,
option: ConversionBehavior
) -> Result<ConversionResult<u8>, ()>
unsafe fn from_jsval( cx: *mut JSContext, val: HandleValue<'_>, option: ConversionBehavior ) -> Result<ConversionResult<u8>, ()>
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.