You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The RefCell chapter gives the reader an impression that RefCell is no different from Box other than the additional support of runtime mutability check. However there's another big difference: Box manages object on the heap while RefCell is just a stack variable wrapper. I think this needs to be clearly stated when introducing RefCell to the reader, otherwise it can cause confusions (see this discussion in the forum).
The text was updated successfully, but these errors were encountered:
The RefCell chapter gives the reader an impression that RefCell is no different from Box other than the additional support of runtime mutability check. However there's another big difference: Box manages object on the heap while RefCell is just a stack variable wrapper. I think this needs to be clearly stated when introducing RefCell to the reader, otherwise it can cause confusions (see this discussion in the forum).
The text was updated successfully, but these errors were encountered: