cg2 0.4.3

Rust code generator.
Documentation
use alloc::string::String;

use crate::{Flexible, FlexibleList, Generator};

pub fn s<X>(x: X) -> String
where
  X: Flexible,
{
  let mut g = Generator::new();
  x.output_into(&mut g);
  g.into_code()
}

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

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

pub fn tuple<V>(values: V) -> String
where
  V: FlexibleList,
{
  let mut g = Generator::new();
  g.tuple(values);
  g.into_code()
}