mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
b9ddb37d5b
# Objective Fix shields ## Solution - Correct shield in the Bevy ECS Readme, where only the MIT license is displayed ![Screenshot 2023-10-01 at 18 28 27](https://github.com/bevyengine/bevy/assets/104745335/a736a65e-0d47-4d9e-b32d-0b843a00922c) - Add shields to other Readmes. - homogenize shields and titles. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |
Bevy Ptr
The bevy_ptr
crate provides low-level abstractions for working with pointers in a more safe way than using rust's raw pointers.
Rust has lifetimed and typed references (&'a T
), unlifetimed and typed references (*const T
), but no lifetimed but untyped references.
bevy_ptr
adds them, called Ptr<'a>
, PtrMut<'a>
and OwningPtr<'a>
.
These types are lifetime-checked so can never lead to problems like use-after-frees and must always point to valid data.