Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular-rust/yew-components
/ document
Function
document
src/drawer.rs:235–239 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
233
}
234
235
fn document() -> web_sys::Document {
236
window()
237
.document()
238
.expect(
"should have a document on window"
)
239
}
240
241
fn body() -> web_sys::HtmlElement {
242
document().body().expect(
"document should have a body"
)
Callers
1
body
Function · 0.85
Calls
1
window
Function · 0.85
Tested by
no test coverage detected