Is RefCell allocated in the heap?

And how could I figure out this myself ?

Sincerly yours,
Demeter, fighting the borrow checker.

1 Like

No. The only things that allocate are in alloc - Rust and https://doc.rust-lang.org/stable/collections/index.html . The types in those crates are re-exported in std in their well-known locations.

4 Likes

Choosing your Guarantees has some of this info on the builtin types as well.

3 Likes