Originally posted by oiaohm
View Post
RefCell is implemented in the stdlib and actually works completely differently to the borrow checker (as stated before its a struct that contains the value along with the either a counter or a special constant)
They have completely different designs, the only interaction that RefCel has with the borrow checker is via the type system so that your Rust program can actually compile when using RefCel, saying this is part of the same design as the borrow checker is such a stretch that honestly it looks like you are trying to dig yourself out of a hole.
Comment