shoebill
macro_rules! concat { ( [], $ctx:expr ) => { ... }; ( [$d:expr], $ctx:expr ) => { ... }; ( [$d1:expr, $d2:expr], $ctx:expr ) => { ... }; ( [$d1:expr, $d2:expr, $($tl:expr),*], $ctx:expr) => { ... }; }
use shoebill::{ concat, Printer, Doclike }; let mut store = Printer::new(); let d = concat!(["a", "b", "c", "d"], &mut store); assert_eq!(format!("{}", d.render(80, &mut store)), format!("abcd"));