pub(crate) type TestDictionaryParent = TestDictionaryParent;
Aliased Type§
struct TestDictionaryParent {
pub(crate) parentStringMember: Option<DOMString>,
}
Fields§
§parentStringMember: Option<DOMString>
Implementations
Source§impl TestDictionaryParent
impl TestDictionaryParent
pub(crate) fn empty() -> Self
pub(crate) fn new( cx: SafeJSContext, val: HandleValue<'_>, ) -> Result<ConversionResult<TestDictionaryParent>, ()>
Source§impl TestDictionaryParent
impl TestDictionaryParent
pub(crate) unsafe fn to_jsobject( &self, cx: *mut JSContext, obj: MutableHandleObject<'_>, )
Trait Implementations
Source§impl Default for TestDictionaryParent
impl Default for TestDictionaryParent
Source§impl FromJSValConvertible for TestDictionaryParent
impl FromJSValConvertible for TestDictionaryParent
Source§unsafe fn from_jsval(
cx: *mut JSContext,
value: HandleValue<'_>,
_option: (),
) -> Result<ConversionResult<TestDictionaryParent>, ()>
unsafe fn from_jsval( cx: *mut JSContext, value: HandleValue<'_>, _option: (), ) -> Result<ConversionResult<TestDictionaryParent>, ()>
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.