rustgen: write serialization function for Rust-AST model
Context
Based on #36
Steps
- Implement a function capable of producing the appropriate Rust-snippets corresponding to the AST node values we need for generating a Uint8-compatible converter (for the reason we specify this type, see #35 )
- Implement compound productions that produce entire standalone blocks of Rust code from their associated model-value in our AST, irrespective of whether the children of said node can actually be serialized at this prototype stage
- Implement a test-suite that models an effective "hello world" function based on the capabilities for serialization we have implemented in anticipation of uint8 conversion code, and verify that the source code is generated correctly, is syntactically and semantically sound, and produces the expected behavior