bevy/crates/bevy_ecs/src
Jakob Hellermann d63b7e9568 some cleanup for bevy_ptr (#4668)
1. change `PtrMut::as_ptr(self)` and `OwnedPtr::as_ptr(self)` to take `&self`, otherwise printing the pointer will prevent doing anything else afterwards
2. make all `as_ptr` methods safe. There's nothing unsafe about obtaining a pointer, these kinds of methods are safe in std as well [str::as_ptr](https://doc.rust-lang.org/stable/std/primitive.str.html#method.as_ptr), [Rc::as_ptr](https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#method.as_ptr)
3. rename `offset`/`add` to `byte_offset`/`byte_add`. The unprefixed methods in std add in increments of `std::mem::size_of::<T>`, not in bytes. There's a PR for rust to add these byte_ methods https://github.com/rust-lang/rust/pull/95643 and at the call site it makes it much more clear that you need to do `.byte_add(i * layout_size)` instead of `.add(i)`
2022-05-06 19:15:24 +00:00
..
entity Decouple some dependencies (#3886) 2022-04-27 19:08:11 +00:00
query Fix CI (#4675) 2022-05-06 18:27:37 +00:00
schedule Make RunOnce a non-manual System impl (#3922) 2022-05-04 18:41:37 +00:00
storage some cleanup for bevy_ptr (#4668) 2022-05-06 19:15:24 +00:00
system Apply buffers in ParamSet (#4677) 2022-05-06 18:52:26 +00:00
world bevy_ptr standalone crate (#4653) 2022-05-04 19:16:10 +00:00
archetype.rs Change Cow<[ComponentId]> to Box<[ComponentId]> (#4185) 2022-03-19 04:14:27 +00:00
bundle.rs bevy_ptr standalone crate (#4653) 2022-05-04 19:16:10 +00:00
change_detection.rs Improve debugging tools for change detection (#4160) 2022-05-02 18:26:52 +00:00
component.rs bevy_ptr standalone crate (#4653) 2022-05-04 19:16:10 +00:00
event.rs small and mostly pointless refactoring (#2934) 2022-02-13 22:33:55 +00:00
lib.rs bevy_ptr standalone crate (#4653) 2022-05-04 19:16:10 +00:00
reflect.rs Add FromReflect trait to convert dynamic types to concrete types (#1395) 2021-12-26 18:49:01 +00:00