mirror of
https://github.com/Lokathor/bytemuck.git
synced 2024-11-21 14:22:26 +00:00
005ee3254f
* Fix panics in try_cast_slice_{box,rc,arc},cast_vec. Casting from non-empty non-ZST slices to ZST slices now returns Err(SizeMismatch) (instead of panicking). Casting from empty non-ZST slices to ZST slices is allowed and returns an empty slice (instead of panicking). Casting from ZST slices to non-ZST slices is allowed and returns an empty slice (status quo). * Add tests for cast_slice_box,rc,arc. |
||
---|---|---|
.. | ||
array_tests.rs | ||
cast_slice_tests.rs | ||
checked_tests.rs | ||
derive.rs | ||
doc_tests.rs | ||
offset_of_tests.rs | ||
std_tests.rs | ||
transparent.rs | ||
wrapper_forgets.rs |