macro_rules! node {
( $id:expr, $value:expr, $( $more:expr ),* ) => { ... };
( $id:expr, $value:expr ) => { ... };
}Expand description
Create a new Node using a macro
§Arguments
id: The node identifiervalue: The node valuemore:Nodechildren
§Examples
Create a node with no children
Create a node with children
use orange_trees::{Node, node};
let node: Node<&'static str, usize> = node!("root", 0, node!("a", 1));Create a nested node structure