[][src]Macro shoebill::concat_w

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