![Ame :]](/assets/img/avatar_default.png)
# Objective Fix shields ## Solution - Correct shield in the Bevy ECS Readme, where only the MIT license is displayed  - Add shields to other Readmes. - homogenize shields and titles.
14 lines
1.0 KiB
Markdown
14 lines
1.0 KiB
Markdown
# Bevy Ptr
|
|
|
|
[](https://github.com/bevyengine/bevy#license)
|
|
[](https://crates.io/crates/bevy_ptr)
|
|
[](https://crates.io/crates/bevy_ptr)
|
|
[](https://docs.rs/bevy_ptr/latest/bevy_ptr/)
|
|
[](https://discord.gg/bevy)
|
|
|
|
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.
|