rust/library/std/src/sync
Matthias Krüger 1f6cb859ee
Rollup merge of #132019 - daboross:document-partialeq-oncelock, r=Mark-Simulacrum
Document `PartialEq` impl for `OnceLock`

Adds documentation to `std::sync::OnceLock`'s `PartialEq` implementation: specifies publicly that `OnceLock`s are compared based on their contents, and nothing else.

Created in response to, but not directly related to, https://github.com/rust-lang/rust/issues/131959.

## ne

This doesn't create and document `PartialEq::ne`. There's precedent for this in [`RefCell`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#impl-PartialEq-for-RefCell%3CT%3E).
2024-10-26 18:45:33 +02:00
..
barrier Fix std tests for wasm32-wasip2 target 2024-09-29 04:48:13 +02:00
condvar Fix std tests for wasm32-wasip2 target 2024-09-29 04:48:13 +02:00
lazy_lock Fix std tests for wasm32-wasip2 target 2024-09-29 04:48:13 +02:00
mpmc library: consistently use American spelling for 'behavior' 2024-10-25 12:02:47 +02:00
mpsc Fix std tests for wasm32-wasip2 target 2024-09-29 04:48:13 +02:00
mutex Specify behavior if the closure passed to *Guard::*map panics. 2023-12-05 17:30:46 -06:00
once std: fix busy-waiting in Once::wait_force, add more tests 2024-07-31 17:44:10 +02:00
once_lock Fix std tests for wasm32-wasip2 target 2024-09-29 04:48:13 +02:00
reentrant_lock remove an unused type from the reentrant lock tests 2024-04-22 19:36:21 +02:00
rwlock rwlock: disable 'frob' test in Miri on macOS 2024-08-08 11:15:18 +02:00
barrier.rs Replace move|| with move || in compiler/ and library/ 2024-06-18 23:25:08 +08:00
condvar.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
lazy_lock.rs Rollup merge of #130476 - workingjubilee:more-lazy-methods-take-2, r=Amanieu 2024-09-18 14:32:26 -07:00
mod.rs Add multi-producer, multi-consumer channel (mpmc) 2024-09-30 20:43:51 +03:00
mutex.rs Fix std tests for wasm32-wasip2 target 2024-09-29 04:48:13 +02:00
once.rs library: consistently use American spelling for 'behavior' 2024-10-25 12:02:47 +02:00
once_lock.rs Document PartialEq impl for OnceLock 2024-10-21 20:15:04 -07:00
poison.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
reentrant_lock.rs Fix std tests for wasm32-wasip2 target 2024-09-29 04:48:13 +02:00
rwlock.rs Fix std tests for wasm32-wasip2 target 2024-09-29 04:48:13 +02:00