mirror of
https://github.com/Lokathor/bytemuck.git
synced 2024-11-21 22:32:23 +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. |
||
---|---|---|
.. | ||
allocation.rs | ||
anybitpattern.rs | ||
checked.rs | ||
contiguous.rs | ||
internal.rs | ||
lib.rs | ||
must.rs | ||
no_uninit.rs | ||
offset_of.rs | ||
pod_in_option.rs | ||
pod.rs | ||
transparent.rs | ||
zeroable_in_option.rs | ||
zeroable.rs |