News for hackers. Stuff that matters.
Re:Untapped potential in Rust's type system by mhh__ on Monday June 14, 2021 @11:06AM (#27503443)
It didn't use ownership, and I don't think that's the paradigm, but I did something like this in D by tagging allocating members with a user defined attribute which counted in bytes the allocated memory the summed it for the whole tree (structure).

Not worth the effort but it can be done in not much code

There are no comments on this comment yet.