rust/library/alloc
bors 289279de11 Auto merge of #93455 - asquared31415:vec-zero-opts, r=thomcc
Implement internal `IsZero` for Wrapping and Saturating for `Vec` optimizations

This implements the `IsZero` trait for the `Wrapping` and `Saturating` types so that users of these types can get the improved performance from the specialization of creating a `Vec` from a single element repeated when it has a zero bit pattern (example `vec![0_i32; 500]`, or after this PR `vec![Wrapping(0_i32); 500]`)

CC #60978
2022-09-04 20:33:50 +00:00
..
benches
src Auto merge of #93455 - asquared31415:vec-zero-opts, r=thomcc 2022-09-04 20:33:50 +00:00
tests fix into_iter on ZST 2022-08-31 14:21:35 +02:00
Cargo.toml