MCPcopy Create free account
hub / github.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly / document

Function document

src/browser.rs:31–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31pub fn document() -> Result<Document> {
32 window()?
33 .document()
34 .ok_or_else(|| anyhow!("No Document Found"))
35}
36
37pub fn canvas() -> Result<HtmlCanvasElement> {
38 document()?

Callers 4

canvasFunction · 0.85
find_uiFunction · 0.85
find_html_element_by_idFunction · 0.85

Calls 1

windowFunction · 0.85