cg2 0.4.1

Rust code generator.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use alloc::string::String;

use crate::{FlexibleList, Generator};

pub fn comma_sep<I>(items: I) -> String
where
  I: FlexibleList,
{
  let mut g = Generator::new();
  g.comma_sep(items);
  g.into_code()
}