macon 1.3.0

Another builder macro-based generator with its own idioms.
Documentation
use macon::Builder;

// #############################################################################
// ################################### INPUT ###################################
// #############################################################################
#[derive(Builder)]
#[builder(mode=Result,)]
#[builder(fields(Into=!))]
struct Foobar {
    f: Box<dyn Fn(usize) -> usize>,
}

// #############################################################################
// ################################### TESTS ###################################
// #############################################################################

#[test]
fn builder_build() {
    let built = Foobar::builder()
        .f(Box::new(|x| x + 1))
        .build()
        .unwrap();
    assert_eq!((built.f)(1), 2);
}