Skip to main content

id_of

Function id_of 

Source
pub fn id_of(node: NodeId) -> Option<String>
Expand description

Resolve a dispatched NodeId back to the app-authored .id() string that named its node (find_by_id’s inverse, §5.5), or None for an id-less node or one no longer in the tree. The recorder (day::record, §14.6) calls this from inside its event observer to label a tap/input with the id an app would target in a dayscript step. Borrow-safe: returns None rather than panicking if the tree is momentarily borrowed by a re-entrant backend call.

Day API ↩ Guides· daybrite.dev