Trait GetExt
Source pub trait GetExt<N>{
// Required methods
fn get_typed_node(&self, node: &str) -> Result<&N>;
fn get_typed_node_mut(&mut self, node: &str) -> Result<&mut N>;
}
Expand description
Extension methods for Prompt to get nodes.
Gets a reference to the node with id node.
node - The id of the node to get the value from.
§Returns
A Result containing the reference on success, or an error if the node could not be found.
Gets a mutable reference to the node with id node.
node - The id of the node to get the value from.
§Returns
A Result containing the mutable reference on success, or an error if the node could not be found.