bevy/crates/bevy_utils
Christian Hughes fb5d8fd867
Make Parallel<T> more T: !Default accessible (#17943)
# Objective

`ThreadLocal::<T>::default()` doesn't require `T: Default`, so
`Parallel<T>` shouldn't require it either.

## Solution

- Replaced the `Default` derive with a manually specified impl.
- Added `Parallel::borrow_local_mut_or` as a non-`T: Default`-requiring
alternative to `borrow_local_mut`.
- Added `Parallel::scope_or` as a non-`T: Default`-requiring alternative
to `scope`.
2025-07-07 20:22:20 +00:00
..
src Make Parallel<T> more T: !Default accessible (#17943) 2025-07-07 20:22:20 +00:00
Cargo.toml Make DebugName work when building with no default features (#19824) 2025-06-29 02:45:41 +00:00
LICENSE-APACHE Cleanup publish process (#17728) 2025-02-09 17:46:19 +00:00
LICENSE-MIT Cleanup publish process (#17728) 2025-02-09 17:46:19 +00:00
README.md bevyengine.org -> bevy.org (#19503) 2025-06-05 23:09:28 +00:00

Bevy Utilities

License Crates.io Downloads Docs Discord

A Collection of Utilities for the Bevy Engine.