Struct HTMLDocument

Source
pub struct HTMLDocument(/* private fields */);

Implementations§

Source§

impl HTMLDocument

Source

pub fn new(browser: &Browser) -> HTMLDocument

Source

pub fn remove_event_listener( &self, type_: &dyn ToJs<JsString>, listener: &dyn ToJs<JsValue>, options: &dyn ToJs<JsNullable<JsValue>>, ) -> JsNullish

Source

pub fn add_event_listener( &self, type_: &dyn ToJs<JsString>, listener: &dyn ToJs<JsValue>, options: &dyn ToJs<JsNullable<JsValue>>, ) -> JsNullish

Source

pub fn get_prototype(browser: &Browser) -> HTMLDocument

Source

pub fn set_prototype(browser: &Browser, value: &HTMLDocument)

Methods from Deref<Target = Document>§

Source

pub fn get_animations(&self) -> Array<Animation>

Source

pub fn request_storage_access(&self) -> Promise<JsNullish>

Source

pub fn release_events(&self) -> JsNullish

Source

pub fn has_storage_access(&self) -> Promise<JsBoolean>

Source

pub fn has_focus(&self) -> JsBoolean

Source

pub fn get_selection(&self) -> JsNullable<Selection>

Source

pub fn exit_pointer_lock(&self) -> JsNullish

Source

pub fn exit_picture_in_picture(&self) -> Promise<JsNullish>

Source

pub fn exit_fullscreen(&self) -> Promise<JsNullish>

Source

pub fn create_range(&self) -> Range

Source

pub fn create_document_fragment(&self) -> DocumentFragment

Source

pub fn close(&self) -> JsNullish

Source

pub fn clear(&self) -> JsNullish

Source

pub fn capture_events(&self) -> JsNullish

Source

pub fn query_command_enabled(&self, commandId: &dyn ToJs<JsString>) -> JsBoolean

Source

pub fn replace_children(&self, nodes: &dyn ToJs<Array<JsValue>>) -> JsNullish

Source

pub fn append(&self, nodes: &dyn ToJs<Array<JsValue>>) -> JsNullish

Source

pub fn get_element_by_id( &self, elementId: &dyn ToJs<JsString>, ) -> JsNullable<Element>

Source

pub fn query_selector_all<E: JsCast + AsRef<Node> + Into<Node>>( &self, selectors: &dyn ToJs<JsString>, ) -> NodeListOf<E>

Source

pub fn get_elements_by_tag_name( &self, qualifiedName: &dyn ToJs<JsString>, ) -> HTMLCollectionOf<Element>

Source

pub fn get_elements_by_name( &self, elementName: &dyn ToJs<JsString>, ) -> NodeListOf<HTMLElement>

Source

pub fn get_elements_by_class_name( &self, classNames: &dyn ToJs<JsString>, ) -> HTMLCollectionOf<Element>

Source

pub fn writeln(&self, text: &dyn ToJs<Array<JsString>>) -> JsNullish

Source

pub fn write(&self, text: &dyn ToJs<Array<JsString>>) -> JsNullish

Source

pub fn query_selector<E: JsCast + AsRef<Element> + Into<Element>>( &self, selectors: &dyn ToJs<JsString>, ) -> JsNullable<E>

Source

pub fn create_text_node(&self, data: &dyn ToJs<JsString>) -> Text

Source

pub fn prepend(&self, nodes: &dyn ToJs<Array<JsValue>>) -> JsNullish

Source

pub fn create_event(&self, eventInterface: &dyn ToJs<JsString>) -> Event

Source

pub fn query_command_value(&self, commandId: &dyn ToJs<JsString>) -> JsString

Source

pub fn create_comment(&self, data: &dyn ToJs<JsString>) -> Comment

Source

pub fn create_cdatasection(&self, data: &dyn ToJs<JsString>) -> CDATASection

Source

pub fn create_attribute(&self, localName: &dyn ToJs<JsString>) -> Attr

Source

pub fn query_command_supported( &self, commandId: &dyn ToJs<JsString>, ) -> JsBoolean

Source

pub fn query_command_state(&self, commandId: &dyn ToJs<JsString>) -> JsBoolean

Source

pub fn query_command_indeterm( &self, commandId: &dyn ToJs<JsString>, ) -> JsBoolean

Source

pub fn adopt_node<T: JsCast + AsRef<Node> + Into<Node>>( &self, node: &dyn ToJs<T>, ) -> T

Source

pub fn create_nsresolver(&self, nodeResolver: &Node) -> Node

Source

pub fn create_attribute_ns( &self, namespace: &dyn ToJs<JsNullable<JsString>>, qualifiedName: &dyn ToJs<JsString>, ) -> Attr

Source

pub fn create_processing_instruction( &self, target: &dyn ToJs<JsString>, data: &dyn ToJs<JsString>, ) -> ProcessingInstruction

Source

pub fn get_elements_by_tag_name_ns( &self, namespace: &dyn ToJs<JsNullable<JsString>>, localName: &dyn ToJs<JsString>, ) -> HTMLCollectionOf<Element>

Source

pub fn create_element_ns( &self, namespaceURI: &dyn ToJs<JsString>, qualifiedName: &dyn ToJs<JsString>, ) -> MathMLElement

Source

pub fn create_element( &self, tagName: &dyn ToJs<JsString>, options: &dyn ToJs<JsNullable<ElementCreationOptions>>, ) -> HTMLElement

Source

pub fn create_expression( &self, expression: &dyn ToJs<JsString>, resolver: &dyn ToJs<JsNullable<JsValue>>, ) -> XPathExpression

Source

pub fn elements_from_point( &self, x: &dyn ToJs<JsNumber>, y: &dyn ToJs<JsNumber>, ) -> Array<Element>

Source

pub fn open( &self, unused1: &dyn ToJs<JsNullable<JsString>>, unused2: &dyn ToJs<JsNullable<JsString>>, ) -> Document

Source

pub fn import_node<T: JsCast + AsRef<Node> + Into<Node>>( &self, node: &dyn ToJs<T>, deep: &dyn ToJs<JsNullable<JsBoolean>>, ) -> T

Source

pub fn element_from_point( &self, x: &dyn ToJs<JsNumber>, y: &dyn ToJs<JsNumber>, ) -> JsNullable<Element>

Source

pub fn caret_range_from_point( &self, x: &dyn ToJs<JsNumber>, y: &dyn ToJs<JsNumber>, ) -> JsNullable<Range>

Source

pub fn add_event_listener( &self, type_: &dyn ToJs<JsString>, listener: &dyn ToJs<JsValue>, options: &dyn ToJs<JsNullable<JsValue>>, ) -> JsNullish

Source

pub fn create_node_iterator( &self, root: &Node, whatToShow: &dyn ToJs<JsNullable<JsNumber>>, filter: &dyn ToJs<JsNullable<JsValue>>, ) -> NodeIterator

Source

pub fn create_element_ns_with_namespace_qualifiedName_options( &self, namespace: &dyn ToJs<JsNullable<JsString>>, qualifiedName: &dyn ToJs<JsString>, options: &dyn ToJs<JsNullable<JsValue>>, ) -> Element

Source

pub fn open_with_url_name_features( &self, url: &dyn ToJs<JsValue>, name: &dyn ToJs<JsString>, features: &dyn ToJs<JsString>, ) -> JsNullable<Window>

Source

pub fn exec_command( &self, commandId: &dyn ToJs<JsString>, showUI: &dyn ToJs<JsNullable<JsBoolean>>, value: &dyn ToJs<JsNullable<JsString>>, ) -> JsBoolean

Source

pub fn create_tree_walker( &self, root: &Node, whatToShow: &dyn ToJs<JsNullable<JsNumber>>, filter: &dyn ToJs<JsNullable<JsValue>>, ) -> TreeWalker

Source

pub fn remove_event_listener( &self, type_: &dyn ToJs<JsString>, listener: &dyn ToJs<JsValue>, options: &dyn ToJs<JsNullable<JsValue>>, ) -> JsNullish

Source

pub fn evaluate( &self, expression: &dyn ToJs<JsString>, contextNode: &Node, resolver: &dyn ToJs<JsNullable<JsValue>>, type_: &dyn ToJs<JsNullable<JsNumber>>, result: &dyn ToJs<JsNullable<XPathResult>>, ) -> XPathResult

Source

pub fn get_last_element_child(&self) -> JsNullable<Element>

Source

pub fn set_last_element_child(&self, value: &dyn ToJs<JsNullable<Element>>)

Source

pub fn get_first_element_child(&self) -> JsNullable<Element>

Source

pub fn set_first_element_child(&self, value: &dyn ToJs<JsNullable<Element>>)

Source

pub fn get_children(&self) -> HTMLCollection

Source

pub fn set_children(&self, value: &HTMLCollection)

Source

pub fn get_child_element_count(&self) -> JsNumber

Source

pub fn set_child_element_count(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_onwheel(&self) -> JsNullable<JsValue>

Source

pub fn set_onwheel(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onwebkittransitionend(&self) -> JsNullable<JsValue>

Source

pub fn set_onwebkittransitionend(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onwebkitanimationstart(&self) -> JsNullable<JsValue>

Source

pub fn set_onwebkitanimationstart(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onwebkitanimationiteration(&self) -> JsNullable<JsValue>

Source

pub fn set_onwebkitanimationiteration( &self, value: &dyn ToJs<JsNullable<JsValue>>, )

Source

pub fn get_onwebkitanimationend(&self) -> JsNullable<JsValue>

Source

pub fn set_onwebkitanimationend(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onwaiting(&self) -> JsNullable<JsValue>

Source

pub fn set_onwaiting(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onvolumechange(&self) -> JsNullable<JsValue>

Source

pub fn set_onvolumechange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ontransitionstart(&self) -> JsNullable<JsValue>

Source

pub fn set_ontransitionstart(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ontransitionrun(&self) -> JsNullable<JsValue>

Source

pub fn set_ontransitionrun(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ontransitionend(&self) -> JsNullable<JsValue>

Source

pub fn set_ontransitionend(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ontransitioncancel(&self) -> JsNullable<JsValue>

Source

pub fn set_ontransitioncancel(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ontouchstart(&self) -> JsNullable<JsNullable<JsValue>>

Source

pub fn set_ontouchstart( &self, value: &dyn ToJs<JsNullable<JsNullable<JsValue>>>, )

Source

pub fn get_ontouchmove(&self) -> JsNullable<JsNullable<JsValue>>

Source

pub fn set_ontouchmove(&self, value: &dyn ToJs<JsNullable<JsNullable<JsValue>>>)

Source

pub fn get_ontouchend(&self) -> JsNullable<JsNullable<JsValue>>

Source

pub fn set_ontouchend(&self, value: &dyn ToJs<JsNullable<JsNullable<JsValue>>>)

Source

pub fn get_ontouchcancel(&self) -> JsNullable<JsNullable<JsValue>>

Source

pub fn set_ontouchcancel( &self, value: &dyn ToJs<JsNullable<JsNullable<JsValue>>>, )

Source

pub fn get_ontoggle(&self) -> JsNullable<JsValue>

Source

pub fn set_ontoggle(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ontimeupdate(&self) -> JsNullable<JsValue>

Source

pub fn set_ontimeupdate(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onsuspend(&self) -> JsNullable<JsValue>

Source

pub fn set_onsuspend(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onsubmit(&self) -> JsNullable<JsValue>

Source

pub fn set_onsubmit(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onstalled(&self) -> JsNullable<JsValue>

Source

pub fn set_onstalled(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onslotchange(&self) -> JsNullable<JsValue>

Source

pub fn set_onslotchange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onselectstart(&self) -> JsNullable<JsValue>

Source

pub fn set_onselectstart(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onselectionchange(&self) -> JsNullable<JsValue>

Source

pub fn set_onselectionchange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onselect(&self) -> JsNullable<JsValue>

Source

pub fn set_onselect(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onseeking(&self) -> JsNullable<JsValue>

Source

pub fn set_onseeking(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onseeked(&self) -> JsNullable<JsValue>

Source

pub fn set_onseeked(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onsecuritypolicyviolation(&self) -> JsNullable<JsValue>

Source

pub fn set_onsecuritypolicyviolation( &self, value: &dyn ToJs<JsNullable<JsValue>>, )

Source

pub fn get_onscrollend(&self) -> JsNullable<JsValue>

Source

pub fn set_onscrollend(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onscroll(&self) -> JsNullable<JsValue>

Source

pub fn set_onscroll(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onresize(&self) -> JsNullable<JsValue>

Source

pub fn set_onresize(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onreset(&self) -> JsNullable<JsValue>

Source

pub fn set_onreset(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onratechange(&self) -> JsNullable<JsValue>

Source

pub fn set_onratechange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onprogress(&self) -> JsNullable<JsValue>

Source

pub fn set_onprogress(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpointerup(&self) -> JsNullable<JsValue>

Source

pub fn set_onpointerup(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpointerover(&self) -> JsNullable<JsValue>

Source

pub fn set_onpointerover(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpointerout(&self) -> JsNullable<JsValue>

Source

pub fn set_onpointerout(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpointermove(&self) -> JsNullable<JsValue>

Source

pub fn set_onpointermove(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpointerleave(&self) -> JsNullable<JsValue>

Source

pub fn set_onpointerleave(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpointerenter(&self) -> JsNullable<JsValue>

Source

pub fn set_onpointerenter(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpointerdown(&self) -> JsNullable<JsValue>

Source

pub fn set_onpointerdown(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpointercancel(&self) -> JsNullable<JsValue>

Source

pub fn set_onpointercancel(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onplaying(&self) -> JsNullable<JsValue>

Source

pub fn set_onplaying(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onplay(&self) -> JsNullable<JsValue>

Source

pub fn set_onplay(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpause(&self) -> JsNullable<JsValue>

Source

pub fn set_onpause(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpaste(&self) -> JsNullable<JsValue>

Source

pub fn set_onpaste(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onmouseup(&self) -> JsNullable<JsValue>

Source

pub fn set_onmouseup(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onmouseover(&self) -> JsNullable<JsValue>

Source

pub fn set_onmouseover(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onmouseout(&self) -> JsNullable<JsValue>

Source

pub fn set_onmouseout(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onmousemove(&self) -> JsNullable<JsValue>

Source

pub fn set_onmousemove(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onmouseleave(&self) -> JsNullable<JsValue>

Source

pub fn set_onmouseleave(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onmouseenter(&self) -> JsNullable<JsValue>

Source

pub fn set_onmouseenter(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onmousedown(&self) -> JsNullable<JsValue>

Source

pub fn set_onmousedown(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onlostpointercapture(&self) -> JsNullable<JsValue>

Source

pub fn set_onlostpointercapture(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onloadstart(&self) -> JsNullable<JsValue>

Source

pub fn set_onloadstart(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onloadedmetadata(&self) -> JsNullable<JsValue>

Source

pub fn set_onloadedmetadata(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onloadeddata(&self) -> JsNullable<JsValue>

Source

pub fn set_onloadeddata(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onload(&self) -> JsNullable<JsValue>

Source

pub fn set_onload(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onkeyup(&self) -> JsNullable<JsValue>

Source

pub fn set_onkeyup(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onkeypress(&self) -> JsNullable<JsValue>

Source

pub fn set_onkeypress(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onkeydown(&self) -> JsNullable<JsValue>

Source

pub fn set_onkeydown(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_oninvalid(&self) -> JsNullable<JsValue>

Source

pub fn set_oninvalid(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_oninput(&self) -> JsNullable<JsValue>

Source

pub fn set_oninput(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ongotpointercapture(&self) -> JsNullable<JsValue>

Source

pub fn set_ongotpointercapture(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onformdata(&self) -> JsNullable<JsValue>

Source

pub fn set_onformdata(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onfocus(&self) -> JsNullable<JsValue>

Source

pub fn set_onfocus(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onerror(&self) -> JsNullable<OnErrorEventHandlerNonNull>

Source

pub fn set_onerror( &self, value: &dyn ToJs<JsNullable<OnErrorEventHandlerNonNull>>, )

Source

pub fn get_onended(&self) -> JsNullable<JsValue>

Source

pub fn set_onended(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onemptied(&self) -> JsNullable<JsValue>

Source

pub fn set_onemptied(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ondurationchange(&self) -> JsNullable<JsValue>

Source

pub fn set_ondurationchange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ondrop(&self) -> JsNullable<JsValue>

Source

pub fn set_ondrop(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ondragstart(&self) -> JsNullable<JsValue>

Source

pub fn set_ondragstart(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ondragover(&self) -> JsNullable<JsValue>

Source

pub fn set_ondragover(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ondragleave(&self) -> JsNullable<JsValue>

Source

pub fn set_ondragleave(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ondragenter(&self) -> JsNullable<JsValue>

Source

pub fn set_ondragenter(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ondragend(&self) -> JsNullable<JsValue>

Source

pub fn set_ondragend(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ondrag(&self) -> JsNullable<JsValue>

Source

pub fn set_ondrag(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ondblclick(&self) -> JsNullable<JsValue>

Source

pub fn set_ondblclick(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_oncut(&self) -> JsNullable<JsValue>

Source

pub fn set_oncut(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_oncuechange(&self) -> JsNullable<JsValue>

Source

pub fn set_oncuechange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_oncopy(&self) -> JsNullable<JsValue>

Source

pub fn set_oncopy(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_oncontextmenu(&self) -> JsNullable<JsValue>

Source

pub fn set_oncontextmenu(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onclose(&self) -> JsNullable<JsValue>

Source

pub fn set_onclose(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onclick(&self) -> JsNullable<JsValue>

Source

pub fn set_onclick(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onchange(&self) -> JsNullable<JsValue>

Source

pub fn set_onchange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_oncanplaythrough(&self) -> JsNullable<JsValue>

Source

pub fn set_oncanplaythrough(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_oncanplay(&self) -> JsNullable<JsValue>

Source

pub fn set_oncanplay(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_oncancel(&self) -> JsNullable<JsValue>

Source

pub fn set_oncancel(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onblur(&self) -> JsNullable<JsValue>

Source

pub fn set_onblur(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onbeforeinput(&self) -> JsNullable<JsValue>

Source

pub fn set_onbeforeinput(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onauxclick(&self) -> JsNullable<JsValue>

Source

pub fn set_onauxclick(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onanimationstart(&self) -> JsNullable<JsValue>

Source

pub fn set_onanimationstart(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onanimationiteration(&self) -> JsNullable<JsValue>

Source

pub fn set_onanimationiteration(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onanimationend(&self) -> JsNullable<JsValue>

Source

pub fn set_onanimationend(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onanimationcancel(&self) -> JsNullable<JsValue>

Source

pub fn set_onanimationcancel(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onabort(&self) -> JsNullable<JsValue>

Source

pub fn set_onabort(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_fonts(&self) -> FontFaceSet

Source

pub fn set_fonts(&self, value: &FontFaceSet)

Source

pub fn get_style_sheets(&self) -> StyleSheetList

Source

pub fn set_style_sheets(&self, value: &StyleSheetList)

Source

pub fn get_pointer_lock_element(&self) -> JsNullable<Element>

Source

pub fn set_pointer_lock_element(&self, value: &dyn ToJs<JsNullable<Element>>)

Source

pub fn get_picture_in_picture_element(&self) -> JsNullable<Element>

Source

pub fn set_picture_in_picture_element( &self, value: &dyn ToJs<JsNullable<Element>>, )

Source

pub fn get_fullscreen_element(&self) -> JsNullable<Element>

Source

pub fn set_fullscreen_element(&self, value: &dyn ToJs<JsNullable<Element>>)

Source

pub fn get_adopted_style_sheets(&self) -> Array<CSSStyleSheet>

Source

pub fn set_adopted_style_sheets(&self, value: &dyn ToJs<Array<CSSStyleSheet>>)

Source

pub fn get_active_element(&self) -> JsNullable<Element>

Source

pub fn set_active_element(&self, value: &dyn ToJs<JsNullable<Element>>)

Source

pub fn get_visibility_state(&self) -> JsString

Source

pub fn set_visibility_state(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_title(&self) -> JsString

Source

pub fn set_title(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_timeline(&self) -> DocumentTimeline

Source

pub fn set_timeline(&self, value: &DocumentTimeline)

Source

pub fn get_scrolling_element(&self) -> JsNullable<Element>

Source

pub fn set_scrolling_element(&self, value: &dyn ToJs<JsNullable<Element>>)

Source

pub fn get_scripts(&self) -> HTMLCollectionOf<HTMLScriptElement>

Source

pub fn set_scripts(&self, value: &dyn ToJs<HTMLCollectionOf<HTMLScriptElement>>)

Source

pub fn get_root_element(&self) -> JsNullable<SVGSVGElement>

Source

pub fn set_root_element(&self, value: &dyn ToJs<JsNullable<SVGSVGElement>>)

Source

pub fn get_referrer(&self) -> JsString

Source

pub fn set_referrer(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_ready_state(&self) -> JsString

Source

pub fn set_ready_state(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_plugins(&self) -> HTMLCollectionOf<HTMLEmbedElement>

Source

pub fn set_plugins(&self, value: &dyn ToJs<HTMLCollectionOf<HTMLEmbedElement>>)

Source

pub fn get_picture_in_picture_enabled(&self) -> JsBoolean

Source

pub fn set_picture_in_picture_enabled(&self, value: &dyn ToJs<JsBoolean>)

Source

pub fn get_owner_document(&self) -> JsNullish

Source

pub fn set_owner_document(&self, value: &dyn ToJs<JsNullish>)

Source

pub fn get_onvisibilitychange(&self) -> JsNullable<JsValue>

Source

pub fn set_onvisibilitychange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onreadystatechange(&self) -> JsNullable<JsValue>

Source

pub fn set_onreadystatechange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpointerlockerror(&self) -> JsNullable<JsValue>

Source

pub fn set_onpointerlockerror(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpointerlockchange(&self) -> JsNullable<JsValue>

Source

pub fn set_onpointerlockchange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onfullscreenerror(&self) -> JsNullable<JsValue>

Source

pub fn set_onfullscreenerror(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onfullscreenchange(&self) -> JsNullable<JsValue>

Source

pub fn set_onfullscreenchange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_last_modified(&self) -> JsString

Source

pub fn set_last_modified(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_input_encoding(&self) -> JsString

Source

pub fn set_input_encoding(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_implementation(&self) -> DOMImplementation

Source

pub fn set_implementation(&self, value: &DOMImplementation)

Source

pub fn get_images(&self) -> HTMLCollectionOf<HTMLImageElement>

Source

pub fn set_images(&self, value: &dyn ToJs<HTMLCollectionOf<HTMLImageElement>>)

Source

pub fn get_hidden(&self) -> JsBoolean

Source

pub fn set_hidden(&self, value: &dyn ToJs<JsBoolean>)

Source

pub fn get_head(&self) -> HTMLHeadElement

Source

pub fn set_head(&self, value: &HTMLHeadElement)

Source

pub fn get_fullscreen_enabled(&self) -> JsBoolean

Source

pub fn set_fullscreen_enabled(&self, value: &dyn ToJs<JsBoolean>)

Source

pub fn get_fullscreen(&self) -> JsBoolean

Source

pub fn set_fullscreen(&self, value: &dyn ToJs<JsBoolean>)

Source

pub fn get_forms(&self) -> HTMLCollectionOf<HTMLFormElement>

Source

pub fn set_forms(&self, value: &dyn ToJs<HTMLCollectionOf<HTMLFormElement>>)

Source

pub fn get_fg_color(&self) -> JsString

Source

pub fn set_fg_color(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_embeds(&self) -> HTMLCollectionOf<HTMLEmbedElement>

Source

pub fn set_embeds(&self, value: &dyn ToJs<HTMLCollectionOf<HTMLEmbedElement>>)

Source

pub fn get_domain(&self) -> JsString

Source

pub fn set_domain(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_document_uri(&self) -> JsString

Source

pub fn set_document_uri(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_document_element(&self) -> HTMLElement

Source

pub fn set_document_element(&self, value: &HTMLElement)

Source

pub fn get_doctype(&self) -> JsNullable<DocumentType>

Source

pub fn set_doctype(&self, value: &dyn ToJs<JsNullable<DocumentType>>)

Source

pub fn get_dir(&self) -> JsString

Source

pub fn set_dir(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_design_mode(&self) -> JsString

Source

pub fn set_design_mode(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_default_view(&self) -> JsNullable<JsValue>

Source

pub fn set_default_view(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_current_script(&self) -> JsNullable<JsValue>

Source

pub fn set_current_script(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_content_type(&self) -> JsString

Source

pub fn set_content_type(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_compat_mode(&self) -> JsString

Source

pub fn set_compat_mode(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_charset(&self) -> JsString

Source

pub fn set_charset(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_character_set(&self) -> JsString

Source

pub fn set_character_set(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_body(&self) -> HTMLElement

Source

pub fn set_body(&self, value: &HTMLElement)

Source

pub fn get_bg_color(&self) -> JsString

Source

pub fn set_bg_color(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_applets(&self) -> HTMLCollection

Source

pub fn set_applets(&self, value: &HTMLCollection)

Source

pub fn get_anchors(&self) -> HTMLCollectionOf<HTMLAnchorElement>

Source

pub fn set_anchors(&self, value: &dyn ToJs<HTMLCollectionOf<HTMLAnchorElement>>)

Source

pub fn get_all(&self) -> HTMLAllCollection

Source

pub fn set_all(&self, value: &HTMLAllCollection)

Source

pub fn get_url(&self) -> JsString

Source

pub fn set_url(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_location(&self) -> Location

Source

pub fn set_location(&self, value: &dyn ToJs<JsValue>)

Methods from Deref<Target = Node>§

Source

pub fn normalize(&self) -> JsNullish

Source

pub fn has_child_nodes(&self) -> JsBoolean

Source

pub fn remove_child<T: JsCast + AsRef<Node> + Into<Node>>( &self, child: &dyn ToJs<T>, ) -> T

Source

pub fn lookup_prefix( &self, namespace: &dyn ToJs<JsNullable<JsString>>, ) -> JsNullable<JsString>

Source

pub fn lookup_namespace_uri( &self, prefix: &dyn ToJs<JsNullable<JsString>>, ) -> JsNullable<JsString>

Source

pub fn is_same_node(&self, otherNode: &dyn ToJs<JsNullable<Node>>) -> JsBoolean

Source

pub fn is_equal_node(&self, otherNode: &dyn ToJs<JsNullable<Node>>) -> JsBoolean

Source

pub fn is_default_namespace( &self, namespace: &dyn ToJs<JsNullable<JsString>>, ) -> JsBoolean

Source

pub fn get_root_node( &self, options: &dyn ToJs<JsNullable<GetRootNodeOptions>>, ) -> Node

Source

pub fn contains(&self, other: &dyn ToJs<JsNullable<Node>>) -> JsBoolean

Source

pub fn compare_document_position(&self, other: &Node) -> JsNumber

Source

pub fn clone_node(&self, deep: &dyn ToJs<JsNullable<JsBoolean>>) -> Node

Source

pub fn append_child<T: JsCast + AsRef<Node> + Into<Node>>( &self, node: &dyn ToJs<T>, ) -> T

Source

pub fn replace_child<T: JsCast + AsRef<Node> + Into<Node>>( &self, node: &Node, child: &dyn ToJs<T>, ) -> T

Source

pub fn insert_before<T: JsCast + AsRef<Node> + Into<Node>>( &self, node: &dyn ToJs<T>, child: &dyn ToJs<JsNullable<Node>>, ) -> T

Source

pub fn get_document__position__implementation__specific(&self) -> JsNumber

Source

pub fn set_document__position__implementation__specific( &self, value: &dyn ToJs<JsNumber>, )

Source

pub fn get_document__position__contained__by(&self) -> JsNumber

Source

pub fn set_document__position__contained__by(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__position__contains(&self) -> JsNumber

Source

pub fn set_document__position__contains(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__position__following(&self) -> JsNumber

Source

pub fn set_document__position__following(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__position__preceding(&self) -> JsNumber

Source

pub fn set_document__position__preceding(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__position__disconnected(&self) -> JsNumber

Source

pub fn set_document__position__disconnected(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_notation__node(&self) -> JsNumber

Source

pub fn set_notation__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__fragment__node(&self) -> JsNumber

Source

pub fn set_document__fragment__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__type__node(&self) -> JsNumber

Source

pub fn set_document__type__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__node(&self) -> JsNumber

Source

pub fn set_document__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_comment__node(&self) -> JsNumber

Source

pub fn set_comment__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_processing__instruction__node(&self) -> JsNumber

Source

pub fn set_processing__instruction__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_entity__node(&self) -> JsNumber

Source

pub fn set_entity__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_entity__reference__node(&self) -> JsNumber

Source

pub fn set_entity__reference__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_cdata__section__node(&self) -> JsNumber

Source

pub fn set_cdata__section__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_text__node(&self) -> JsNumber

Source

pub fn set_text__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_attribute__node(&self) -> JsNumber

Source

pub fn set_attribute__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_element__node(&self) -> JsNumber

Source

pub fn set_element__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_text_content(&self) -> JsNullable<JsString>

Source

pub fn set_text_content(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_previous_sibling(&self) -> JsNullable<ChildNode>

Source

pub fn set_previous_sibling(&self, value: &dyn ToJs<JsNullable<ChildNode>>)

Source

pub fn get_parent_node(&self) -> JsNullable<ParentNode>

Source

pub fn set_parent_node(&self, value: &dyn ToJs<JsNullable<ParentNode>>)

Source

pub fn get_parent_element(&self) -> JsNullable<HTMLElement>

Source

pub fn set_parent_element(&self, value: &dyn ToJs<JsNullable<HTMLElement>>)

Source

pub fn get_owner_document(&self) -> JsNullable<Document>

Source

pub fn set_owner_document(&self, value: &dyn ToJs<JsNullable<Document>>)

Source

pub fn get_node_value(&self) -> JsNullable<JsString>

Source

pub fn set_node_value(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_node_type(&self) -> JsNumber

Source

pub fn set_node_type(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_node_name(&self) -> JsString

Source

pub fn set_node_name(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_next_sibling(&self) -> JsNullable<ChildNode>

Source

pub fn set_next_sibling(&self, value: &dyn ToJs<JsNullable<ChildNode>>)

Source

pub fn get_last_child(&self) -> JsNullable<ChildNode>

Source

pub fn set_last_child(&self, value: &dyn ToJs<JsNullable<ChildNode>>)

Source

pub fn get_is_connected(&self) -> JsBoolean

Source

pub fn set_is_connected(&self, value: &dyn ToJs<JsBoolean>)

Source

pub fn get_first_child(&self) -> JsNullable<ChildNode>

Source

pub fn set_first_child(&self, value: &dyn ToJs<JsNullable<ChildNode>>)

Source

pub fn get_child_nodes(&self) -> NodeListOf<ChildNode>

Source

pub fn set_child_nodes(&self, value: &dyn ToJs<NodeListOf<ChildNode>>)

Source

pub fn get_base_uri(&self) -> JsString

Source

pub fn set_base_uri(&self, value: &dyn ToJs<JsString>)

Methods from Deref<Target = EventTarget>§

Source

pub fn dispatch_event(&self, event: &Event) -> JsBoolean

Source

pub fn remove_event_listener( &self, type_: &dyn ToJs<JsString>, callback: &dyn ToJs<JsNullable<JsValue>>, options: &dyn ToJs<JsNullable<JsValue>>, ) -> JsNullish

Source

pub fn add_event_listener( &self, type_: &dyn ToJs<JsString>, callback: &dyn ToJs<JsNullable<JsValue>>, options: &dyn ToJs<JsNullable<JsValue>>, ) -> JsNullish

Methods from Deref<Target = JsObject>§

Source

pub fn js_get_field(&self, property: &dyn UseInJsCode) -> JsValue

Get a field value of in this object.

WSDOM provides built-in getters so you should use that instead when possible.

Use js_get_field only when needed

fn example(browser: Browser) {
    // you can get `window["location"]["href"]` like this
    let href: JsValue = wsdom::dom::location(&browser).js_get_field(&"href");

    // but you should use built-in getters instead
    let href: JsString = wsdom::dom::location(&browser).get_href();
}
Source

pub fn js_set_field(&self, property: &dyn UseInJsCode, value: &dyn UseInJsCode)

Set a field value of in this object.

WSDOM provides built-in setters so you should use that instead when possible.

Use js_set_field only when needed

fn example(browser: Browser) {
    // you can set `window["location"]["href"]` like this
    wsdom::dom::location(&browser).js_set_field(&"href", &"https://example.com/");

    // but you should use built-in setters instead
    wsdom::dom::location(&browser).set_href(&"https://example.com");
}
Source

pub fn js_call_method<'a>( &'a self, method_name: &'a str, args: impl IntoIterator<Item = &'a dyn UseInJsCode>, last_arg_variadic: bool, ) -> JsValue

Call a method on this object.

Most types in WSDOM already come with safe Rust wrappers for their methods, so you should use those instead.

fn example(browser: &Browser) {
    let console = wsdom::dom::console(browser);
    // you can call console.log like this
    console.js_call_method("log", [&"hello" as &_], false);
     
    // but the better way is to use
    wsdom::dom::console(&browser).log(&[&"Hello" as &_]);
}

Be aware that the first argument (method_name) is NOT escaped.

Set last_arg_variadic to true if you want to “spread” the last argument as obj.method(arg1, arg2, ...arg3).

Source

pub fn js_call_self<'a>( &'a self, args: impl IntoIterator<Item = &'a dyn UseInJsCode>, last_arg_variadic: bool, ) -> JsValue

Call this object: obj().

Most types in WSDOM already come with safe Rust wrappers for their methods, so you should use those instead.

Methods from Deref<Target = JsValue>§

Source

pub fn browser(&self) -> &Browser

Source

pub fn retrieve_json(&self) -> RetrieveFuture<'_, Value>

Retrive this value from the JS side to the Rust side. Returns Future whose output is a serde_json::Value.

§use wsdom::dom::Browser
§use wsdom::dom::HTMLInputElement;

async fn example(input: &HTMLInputElement) { let _val = input.get_value().retrieve_json().await; }

Trait Implementations§

Source§

impl AsRef<Document> for HTMLDocument

Source§

fn as_ref(&self) -> &Document

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<DocumentOrShadowRoot> for HTMLDocument

Source§

fn as_ref(&self) -> &DocumentOrShadowRoot

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<EventTarget> for HTMLDocument

Source§

fn as_ref(&self) -> &EventTarget

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<FontFaceSource> for HTMLDocument

Source§

fn as_ref(&self) -> &FontFaceSource

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<GlobalEventHandlers> for HTMLDocument

Source§

fn as_ref(&self) -> &GlobalEventHandlers

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<HTMLDocument> for HTMLDocument

Source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<JsObject> for HTMLDocument

Source§

fn as_ref(&self) -> &JsObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<JsValue> for HTMLDocument

Source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Node> for HTMLDocument

Source§

fn as_ref(&self) -> &Node

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NonElementParentNode> for HTMLDocument

Source§

fn as_ref(&self) -> &NonElementParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLDocument

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XPathEvaluatorBase> for HTMLDocument

Source§

fn as_ref(&self) -> &XPathEvaluatorBase

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for HTMLDocument

Source§

fn clone(&self) -> HTMLDocument

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Deref for HTMLDocument

Source§

type Target = Document

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Into<Document> for HTMLDocument

Source§

fn into(self) -> Document

Converts this type into the (usually inferred) input type.
Source§

impl Into<DocumentOrShadowRoot> for HTMLDocument

Source§

fn into(self) -> DocumentOrShadowRoot

Converts this type into the (usually inferred) input type.
Source§

impl Into<EventTarget> for HTMLDocument

Source§

fn into(self) -> EventTarget

Converts this type into the (usually inferred) input type.
Source§

impl Into<FontFaceSource> for HTMLDocument

Source§

fn into(self) -> FontFaceSource

Converts this type into the (usually inferred) input type.
Source§

impl Into<GlobalEventHandlers> for HTMLDocument

Source§

fn into(self) -> GlobalEventHandlers

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsObject> for HTMLDocument

Source§

fn into(self) -> JsObject

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for HTMLDocument

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<Node> for HTMLDocument

Source§

fn into(self) -> Node

Converts this type into the (usually inferred) input type.
Source§

impl Into<NonElementParentNode> for HTMLDocument

Source§

fn into(self) -> NonElementParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLDocument

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<XPathEvaluatorBase> for HTMLDocument

Source§

fn into(self) -> XPathEvaluatorBase

Converts this type into the (usually inferred) input type.
Source§

impl JsCast for HTMLDocument

Source§

fn unchecked_from_js(val: JsValue) -> Self

Source§

fn unchecked_from_js_ref(val: &JsValue) -> &Self

Source§

fn unchecked_into<T>(self) -> T
where T: JsCast,

Source§

fn unchecked_ref<T>(&self) -> &T
where T: JsCast,

Source§

impl RefCast for HTMLDocument

Source§

type From = JsValue

Source§

fn ref_cast(_from: &Self::From) -> &Self

Source§

fn ref_cast_mut(_from: &mut Self::From) -> &mut Self

Source§

impl UseInJsCode for HTMLDocument

Source§

fn serialize_to(&self, buf: &mut Formatter<'_>) -> Result

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ToJs<T> for T
where T: UseInJsCode + ?Sized,