Rust is good, why not incorporate some design?
This is a proof-of-concept library for myself.
Under include/rusty-cpp/impl,
primitive_types.hpp: Some primitive type aliases and literals.endian.hpp: Some endian-related conversion utilities.maybe_uninit.hpp: The counterpart ofMaybeUninitin Rust. Not recommended.deferred_init.hpp: A less flexible version ofrc::MaybeUninit. Recommended.dbg_macro.hpp: The counterpart ofdbg!in Rust.