Macro zero_v::compose [−][src]
macro_rules! compose { ($($right: expr), *) => { ... }; }
Expand description
Takes a list of objects and uses them to build a composite with one of the original objects contained in the data field of each node (or a single unit type if the list is empty).
Example usage
use zero_v::{compose, Composite, Node}; let nodes = compose!(1, 2); assert_eq!(nodes, Composite::new(Node::new(1, Node::base(2))));