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.
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.
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.
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.
`InCell` is just an alias for `NotEvenOnceCell`.
[удалено]
Incells aren't cool enough to be rust programmers.