Skip to main content

take

Function take 

Source
pub fn take() -> DomState
Expand description

Take the current document, leaving a fresh one in its place — reset, but the document it replaces comes back to the caller instead of being dropped. A nested run (a candidate page tier compared against the reference) takes the caller’s document before it paints its own, and restores it when it is done, so the caller’s own document survives the comparison.