rust/library/alloc/src/vec
bors 705a96d39b Auto merge of #106989 - clubby789:is-zero-num, r=scottmcm
Implement `alloc::vec::IsZero` for `Option<$NUM>` types

Fixes #106911

Mirrors the `NonZero$NUM` implementations with an additional `assert_zero_valid`.
`None::<i32>` doesn't stricly satisfy `IsZero` but for the purpose of allocating we can produce more efficient codegen.
2023-01-19 08:04:26 +00:00
..
cow.rs Document From impls for cow.rs 2021-05-26 14:21:44 +00:00
drain.rs Don't do pointer arithmetic on pointers to deallocated memory 2023-01-17 22:01:33 +01:00
drain_filter.rs fill-in tracking issue for feature(drain_keep_rest) 2022-08-28 17:02:37 +04:00
in_place_collect.rs Rollup merge of #101642 - SkiFire13:fix-inplace-collection-leak, r=the8472 2022-10-04 16:11:01 +05:30
in_place_drop.rs Fix leaking in inplace collection when destructor panics 2022-09-10 11:34:22 +02:00
into_iter.rs Remove various double spaces in source comments. 2023-01-14 17:22:04 +01:00
is_zero.rs Update IsZero documentation 2023-01-18 15:48:53 +00:00
mod.rs Remove various double spaces in source comments. 2023-01-14 17:22:04 +01:00
partial_eq.rs Allow comparing Vecs with different allocators using == 2022-02-08 01:50:55 +00:00
set_len_on_drop.rs Tune RepeatWith::try_fold and Take::for_each and Vec::extend_trusted 2022-11-24 19:14:19 -08:00
spec_extend.rs Extract the logic for TrustedLen to a named method that can be called directly 2022-11-24 03:12:05 -08:00
spec_from_elem.rs Support vec zero-alloc optimization for tuples and byte arrays 2022-07-24 15:56:39 -04:00
spec_from_iter.rs Update documentation of SpecFromIter to reflect the removed impls 2021-05-31 21:07:03 +02:00
spec_from_iter_nested.rs Improve estimation of capacity in Vec::from_iter 2022-01-19 09:47:49 -05:00
splice.rs Don't do pointer arithmetic on pointers to deallocated memory 2023-01-17 22:01:33 +01:00