kornelski / rust-rgb

struct RGB for sharing pixels between crates
https://lib.rs/rgb
MIT License
98 stars 19 forks source link

Go through `as_mut_ptr` instead of `as_ptr` to mutate #51

Closed Noratrieb closed 2 years ago

Noratrieb commented 2 years ago

Going through as_ptr does not give write provenance since it creates an intermediary shared reference.

kornelski commented 2 years ago

Thanks