pub fn with_node_mut<N: Node + 'static, R>(
id: NodeId,
f: impl FnOnce(&mut N) -> R,
) -> Result<R, NodeError>Expand description
Runs f on the node id as an N, using the current composer. Returns an error if the node
does not exist or is not an N. Must be called during composition.