bytemuck/src
zachs18 005ee3254f
Fix panics in try_cast_slice_box etc (#254)
* 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.
2024-07-21 10:24:43 -06:00
..
allocation.rs Fix panics in try_cast_slice_box etc (#254) 2024-07-21 10:24:43 -06:00
anybitpattern.rs Fix the errors CI is showing (#247) 2024-05-28 12:22:59 -06:00
checked.rs Fix the errors CI is showing (#247) 2024-05-28 12:22:59 -06:00
contiguous.rs make clippy be quiet about useless nonsense. 2024-05-13 10:53:18 -06:00
internal.rs Create align_offset feature so that we can continue to work on 1.34 2023-09-05 14:08:36 -06:00
lib.rs Support Zeroable and Pod for f16 and f128 (#251) 2024-06-18 21:24:29 -06:00
must.rs Fix miri CI (#231) 2024-04-01 07:31:39 -06:00
no_uninit.rs run cargo fmt (#120) 2022-07-24 09:27:49 -06:00
offset_of.rs [Feature] extend TransparentWrapper conversion functions (#58) 2021-03-28 23:11:13 -06:00
pod_in_option.rs improve docs 2022-07-02 15:29:48 -06:00
pod.rs Support Zeroable and Pod for f16 and f128 (#251) 2024-06-18 21:24:29 -06:00
transparent.rs Update TransparentWrapper asserts (#232) 2024-04-09 19:02:38 -06:00
zeroable_in_option.rs improve documentation for optional features (#203) 2023-09-05 13:39:41 -06:00
zeroable.rs Support Zeroable and Pod for f16 and f128 (#251) 2024-06-18 21:24:29 -06:00