Macro zero_v::compose_nodes [−][src]
macro_rules! compose_nodes { () => { ... }; ($val: expr) => { ... }; ($left: expr, $($right: expr), +) => { ... }; }
Expand description
Takes a list of objects and uses them to build a nested node object with one of the original objects contained in the data field of each node.
Example usage
use zero_v::{compose_nodes, Node}; let nodes = compose_nodes!(1, 2); assert_eq!(nodes, Node::new(1, Node::new(2, ())));