3 ms·
> It ended up requiring a lot of RefCell (pointers to heap) Just so you know, RefCell does not inherently point to the heap. If you put a Box or something ins
by steveklabnik 3y ago
> It ended up requiring a lot of RefCell (pointers to heap)
Just so you know, RefCell does not inherently point to the heap. If you put a Box or something inside, sure, but on its own, it doesn't allocate.
- tommiegannert 3y agoAh, thanks, I changed it to a Box. I confused the two, since I had to use them in conjunction.
- steveklabnik 3y agoIt's all good. For what it's worth, I agree with you generally that a lot of the C code I see is like, "differently shaped" than the Rust, so it's not super simple to port directly over.