mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
6dbc8b8f6f
# Objective
- Currently `bevy_ptr::{Ptr, PtrMut}` have `From` implementations from
references.
- These implementations impose an implicit `Sized` bound so `bevy_ptr`
types cannot be created from references to slices and trait objects.
- I ran into this trying to use `Ptr<'static>` as an untyped `&'static
dyn Any`, and [had to work around
it](
|
||
---|---|---|
.. | ||
lib.rs |