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)]
#[ allow( unused_imports ) ]
use super::*;
#[ allow( unused_imports ) ]
use test_tools::a_id;

#[ derive( Debug, PartialEq, the_module::Former ) ]
pub struct Struct1 {
  #[ former( default = collection_tools::vec![ 1, 2, 3 ] ) ]
  #[ former( default = collection_tools::vec![ 2, 3, 4 ] ) ]
  vec_ints: Vec<i32>,
}

//

tests_impls! {
  fn test_complex()
  {
    let command = Struct1::former().form();
    let expected = Struct1
    {
      vec_ints : collection_tools::vec![ 2, 3, 4 ],
    };
    a_id!( command, expected );
  }
}

//

tests_index! {
  test_complex,
}