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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![allow(clippy::used_underscore_binding, clippy::all, warnings, missing_docs)]
#![allow(dead_code)]
#[ allow( unused_imports ) ]
use super::*;

// Test with just ?Sized
// xxx : Re-enable when trailing comma issue is fully fixed in macro_tools::generic_params::decompose
// #[ derive( Debug, PartialEq, the_module::Former ) ]
#[ derive( Debug, PartialEq ) ]
// #[ debug ] // Commented out - debug attribute only for temporary debugging
pub struct WithSized<T: ?Sized> {
  data: Box< T >,
}

// Test that manual version would look like:
// pub struct WithSizedFormerStorage<T: ?Sized> {
//   data: Option<Box< T >>,
// }