Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/pin-cell/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 735 B image not shown  

Quelle  README.md   Sprache: unbekannt

 
Spracherkennung für: .md vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

# `PinCell`

This library defines the `PinCell` type, a pinning variant of the standard
library's `RefCell`.

It is not safe to "pin project" through a `RefCell` - getting a pinned
reference to something inside the `RefCell` when you have a pinned
refernece to the `RefCell` - because `RefCell` is too powerful.

A `PinCell` is slightly less powerful than `RefCell`: unlike a `RefCell`,
one cannot get a mutable reference into a `PinCell`, only a pinned mutable
reference (`Pin<&mut T>`). This makes pin projection safe, allowing you
to use interior mutability with the knowledge that `T` will never actually
be moved out of the `RefCell` that wraps it.


## License

<sup>
Licensed under <a href="LICENSE-MIT">MIT license</a>.
</sup>

[Dauer der Verarbeitung: 0.15 Sekunden, vorverarbeitet 2026-08-25]