Is RefCell allocated in the heap?


#1

And how could I figure out this myself ?

Sincerly yours,
Demeter, fighting the borrow checker.


#2

No. The only things that allocate are in https://doc.rust-lang.org/stable/alloc/index.html 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.


#3

https://doc.rust-lang.org/nightly/book/choosing-your-guarantees.html has some of this info on the builtin types as well.