• Home
  • Raw
  • Download

Lines Matching refs:with_capacity

85     let mut a = BytesMut::with_capacity(64);  in fmt_write()
89 let mut b = BytesMut::with_capacity(64); in fmt_write()
94 let mut c = BytesMut::with_capacity(64); in fmt_write()
181 let mut bytes = BytesMut::with_capacity(1024); in split_off_uninitialized()
286 let mut bytes = BytesMut::with_capacity(1024); in split_to_uninitialized()
293 let mut bytes = BytesMut::with_capacity(100); in split_off_to_at_gt_len()
441 let mut bytes = BytesMut::with_capacity(64); in reserve_growth()
451 let mut bytes = BytesMut::with_capacity(1024); in reserve_allocates_at_least_original_capacity()
468 let mut bytes = BytesMut::with_capacity(SIZE); in reserve_max_original_capacity_value()
482 let mut bytes = BytesMut::with_capacity(16); in reserve_vec_recycling()
496 let mut bytes = BytesMut::with_capacity(1000); in reserve_in_arc_unique_does_not_overallocate()
508 let mut bytes = BytesMut::with_capacity(1000); in reserve_in_arc_unique_doubles()
520 let mut bytes = BytesMut::with_capacity(1000); in reserve_in_arc_nonunique_does_not_overallocate()
532 let mut bytes = BytesMut::with_capacity(0); in extend_mut()
549 let mut bytes = BytesMut::with_capacity(0); in extend_mut_without_size_hint()
627 let mut joins = Vec::with_capacity(THREADS); in stress()
752 let mut buf = BytesMut::with_capacity(64); in bytes_mut_unsplit_basic()
765 let mut buf = BytesMut::with_capacity(64); in bytes_mut_unsplit_empty_other()
780 let mut other = BytesMut::with_capacity(64); in bytes_mut_unsplit_empty_self()
789 let mut buf = BytesMut::with_capacity(64); in bytes_mut_unsplit_arc_different()
794 let mut buf2 = BytesMut::with_capacity(64); in bytes_mut_unsplit_arc_different()
805 let mut buf = BytesMut::with_capacity(64); in bytes_mut_unsplit_arc_non_contiguous()
818 let mut buf = BytesMut::with_capacity(64); in bytes_mut_unsplit_two_split_offs()
913 let mut bytes = BytesMut::with_capacity(1024); in bytes_buf_mut_advance()
952 let mut bytes = BytesMut::with_capacity(1024); in bytes_reserve_overflow()
961 let vec = Vec::with_capacity(1); in bytes_with_capacity_but_empty()