former 2.43.0

A flexible implementation of the Builder pattern supporting nested builders and collection-specific subformers. Simplify the construction of complex objects.
Documentation
#![allow(clippy::used_underscore_binding, clippy::all, warnings, missing_docs)]
//! Structure must be public.
//! Otherwise public trait can't have it as type.

#[ allow( unused_imports ) ]
use super::*;
#[ allow( unused_imports ) ]
use test_tools::a_id;

#[ derive( Debug, PartialEq, former::Former ) ]
// #[ debug ]
// #[ derive( Debug, PartialEq ) ]
pub struct Foo {
  bar: i32,
}

// == begin of generated

// == end of generated

#[ test ]
fn basic() {
  let got = Foo::former().bar(13).form();
  let exp = Foo { bar: 13 };
  a_id!(got, exp);
}