Rust does that. Rc type is implemented in Rust. (<a href="https:&#x2F;&#x2F;doc.rust-lang.org&#x2F;nightly&#x2F;std&#x2F;rc&#x2F;struct.Rc.html" rel="nofollow">https:&#x2F;&#x2F;doc.rust-lang.org&#x2F;nightly&#x2F;std&#x2F;rc&#x2F;struct.Rc.html</a>) There&#x27;s also arena allocation available as a library. (<a href="https:&#x2F;&#x2F;crates.io&#x2F;crates&#x2F;typed-arena&#x2F;" rel="nofollow">https:&#x2F;&#x2F;crates.io&#x2F;crates&#x2F;typed-arena&#x2F;</a>) You can add your own memory management abstractions as libraries.