bevy/crates/bevy_ecs/src
Nile 0ddaa7e83a Round out the untyped api s (#7009)
# Objective

Bevy uses custom `Ptr` types so the rust borrow checker can help ensure lifetimes are correct, even when types aren't known. However, these types don't benefit from the automatic lifetime coercion regular rust references enjoy

## Solution

Add a couple methods to Ptr, PtrMut, and MutUntyped to allow for easy usage of these types in more complex scenarios.

## Changelog

- Added `as_mut` and `as_ref` methods to `MutUntyped`.
- Added `shrink` and `as_ref` methods to `PtrMut`.

## Migration Guide

- `MutUntyped::into_inner` now marks things as changed.
2022-12-27 16:05:16 +00:00
..
entity Add EntityMap::iter() (#6935) 2022-12-16 20:14:13 +00:00
query Add a const PipeSystem constructor (#7019) 2022-12-25 00:51:19 +00:00
schedule Move system_commands spans into apply_buffers (#6900) 2022-12-11 23:04:04 +00:00
storage Newtype ArchetypeRow and TableRow (#4878) 2022-12-06 01:38:21 +00:00
system Add a const PipeSystem constructor (#7019) 2022-12-25 00:51:19 +00:00
world Use World helper methods for sending HierarchyEvents (#6921) 2022-12-20 16:17:07 +00:00
archetype.rs Newtype ArchetypeRow and TableRow (#4878) 2022-12-06 01:38:21 +00:00
bundle.rs Remove unnecessary branching from bundle insertion (#6902) 2022-12-11 18:46:43 +00:00
change_detection.rs Round out the untyped api s (#7009) 2022-12-27 16:05:16 +00:00
component.rs Document options for !Sync types for Component and Resources (#6864) 2022-12-11 18:34:13 +00:00
event.rs Rework manual event iterator so we can actually name the type (#5735) 2022-12-25 00:39:27 +00:00
lib.rs Fix clippy lints and failed test with Rust 1.66 (#6945) 2022-12-15 18:05:15 +00:00
reflect.rs Enable Constructing ReflectComponent/Resource (#6257) 2022-10-17 14:01:50 +00:00