dimforge / ncollide

2 and 3-dimensional collision detection library in Rust.
https://ncollide.org
Apache License 2.0
921 stars 107 forks source link

Add repr(transparent) to CollisionObjectSlabHandle #349

Closed ColonelThirtyTwo closed 3 years ago

ColonelThirtyTwo commented 3 years ago

Doing some C interop. Since CollisionObjectSlabHandle is just a wrapper for usize, it would help if it had #[repr(transparent)] to make it safe to cast directly from/to *const size_t arrays, for example.

sebcrozet commented 3 years ago

Hi @ColonelThirtyTwo! Yes, this can be added.