Incremental Structure
A Rust crate for building self-referencing structs using two-phase initialization.
Example
use ;
use IncrStruct;
// The AStructInit trait is generated by the derive macro and
// ensures the contract between the incrstruct library code and
// the user provided code matches. The functions are invoked in
// reverse field declaration order.
// Only head fields are provided to the generated `new_X` functions.
let my_a = new_box;
assert_eq!;
See the documentation for more information.