Skip to main content

with_node_mut

Function with_node_mut 

Source
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.