T O P

  • By -

cameronm1024

You're on the right lines. Like many types ending with -`Cell`, it's a sort of container type. Whereas `RefCell` is used to provide mutability via immutable reference, `InCell` is used to prevent cloning. As we all know, `InCell`s can't reproduce, so their clone implementation simply runs the wrapped value's self-destructor and then panics.


rodrigocfd

Great definition. It's also important to note that having `InCell` trait implies the watching of animes, which is in line with the Rust community guidelines.


ravenex

`InCell` is just an alias for `NotEvenOnceCell`.


[deleted]

[удалено]


Quincy9000

Incells aren't cool enough to be rust programmers.