GitHub - Jaysmito101/rusty.hpp: A Borrow Checker and Memory Ownership System for C++20 (heavily inspired from Rust)
rusty.hpp
What is rusty.hpp?
At the core, the idea is to have implement a minimal and lightweight yet powerful and performant system to be able to emulate Rust's borrow checker and general memory model as a C++ header-only library.
Quoting from rust-lang.org, the borrow check is Rust's "secret sauce" – it is tasked with enforcing a number of properties:
That all variables are initialized before they are used.
That you can't move the same value twice.
That you can't move a value while it is borro...
Read more at github.com