bevy/crates/bevy_utils/src
JoJoJet 38568ccf1f Allow shared access to SyncCell for types that are already Sync (#7718)
# Objective

The type `SyncCell<T>` (added in #5483) is used to force any wrapped type to be `Sync`, by only allowing exclusive access to the wrapped value. This restriction is unnecessary for types which are already `Sync`.

---

## Changelog

+ Added the method `read` to `SyncCell`, which allows shared access to values that already implement the `Sync` trait.
2023-02-17 00:22:57 +00:00
..
default.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
float_ord.rs Document That FloatOrd Implements Hash and Eq Too (#5228) 2022-07-11 14:11:27 +00:00
futures.rs Document remaining members of bevy_utils (#6897) 2022-12-11 18:46:42 +00:00
label.rs Migrate engine to Schedule v3 (#7267) 2023-02-06 02:04:50 +00:00
lib.rs implement TypeUuid for primitives and fix multiple-parameter generics having the same TypeUuid (#6633) 2023-02-16 17:09:44 +00:00
short_names.rs Fix minor typos in code and docs (#7378) 2023-01-27 12:12:53 +00:00
synccell.rs Allow shared access to SyncCell for types that are already Sync (#7718) 2023-02-17 00:22:57 +00:00
syncunsafecell.rs Add bevy_ecs::schedule_v3 module (#6587) 2023-01-17 01:39:17 +00:00