pub(crate) type ElementCreationOptions = ElementCreationOptions;
Aliased Type§
struct ElementCreationOptions {
pub is: Option<DOMString>,
}
Fields§
§is: Option<DOMString>
Implementations
Source§impl ElementCreationOptions
impl ElementCreationOptions
pub fn empty() -> ElementCreationOptions
pub fn new( cx: JSContext, val: Handle<'_, Value>, ) -> Result<ConversionResult<ElementCreationOptions>, ()>
Source§impl ElementCreationOptions
impl ElementCreationOptions
pub unsafe fn to_jsobject( &self, cx: *mut JSContext, obj: MutableHandle<'_, *mut JSObject>, )
Trait Implementations
Source§impl Default for ElementCreationOptions
impl Default for ElementCreationOptions
Source§fn default() -> ElementCreationOptions
fn default() -> ElementCreationOptions
Returns the “default value” for a type. Read more
Source§impl FromJSValConvertible for ElementCreationOptions
impl FromJSValConvertible for ElementCreationOptions
Source§unsafe fn from_jsval(
cx: *mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<ElementCreationOptions>, ()>
unsafe fn from_jsval( cx: *mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<ElementCreationOptions>, ()>
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.