Module utils

Source
Expand description

This module contains useful utilities to get information about the current document.

Structs§

NodeSeq
A special type necessary for flattening components returned from nested html macros.

Functions§

document
Returns the current document.
host
Returns the host for the current document. Useful for connecting to the server which serves the app.
into_node_iter
Map IntoIterator<Item=Into> to Iterator<Item=T>
origin
Returns the origin of the current window.
window
Returns the current window. This function will panic if there is no available window.