Confuse by Rc doc


Rc Officail doc say:
The type Rc provides shared ownership of a value of type T, allocated in the heap.

If I have a struct ‘Person’, when I write


the Person is always allocate in the heap automatically via Rc::new()?
But what is different to the




That would allocate a pointer on the heap, and that pointer would point to a Person elsewhere on the heap.


And Refcell::new is always allocate in the heap?



#5 covers the costs of these.