• Home
  • Raw
  • Download

Lines Matching refs:BytesMut

3 use bytes::{Buf, BufMut, Bytes, BytesMut};
16 is_sync::<BytesMut>(); in test_bounds()
18 is_send::<BytesMut>(); in test_bounds()
31 mem::size_of::<BytesMut>(), in test_layout()
43 mem::size_of::<BytesMut>(), in test_layout()
44 mem::size_of::<Option<BytesMut>>(), in test_layout()
59 let a = BytesMut::from(&b"abcdefgh"[..]); in from_slice()
75 let a = format!("{:?}", BytesMut::from(&b"abcdefg"[..])); in fmt()
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()
104 let a = BytesMut::from(&b"abcdefg"[..]); in len()
110 let a = BytesMut::from(&b""[..]); in len()
165 let mut hello = BytesMut::from(&b"helloworld"[..]); in split_off()
181 let mut bytes = BytesMut::with_capacity(1024); in split_off_uninitialized()
206 let mut bytes = BytesMut::from(&s[..]); in split_off_to_loop()
224 let mut bytes = BytesMut::from(&s[..]); in split_off_to_loop()
279 let mut hello = BytesMut::from(&b"helloworld"[..]); in split_to_oob_mut()
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()
329 let b = BytesMut::from(s).split().freeze(); in freeze_clone_shared()
338 let b = BytesMut::from(s).freeze(); in freeze_clone_unique()
347 let mut b = BytesMut::from(s); in freeze_after_advance()
359 let mut b = BytesMut::from(s); in freeze_after_advance_arc()
371 let mut b = BytesMut::from(s); in freeze_after_split_to()
381 let mut b = BytesMut::from(s); in freeze_after_truncate()
391 let mut b = BytesMut::from(s); in freeze_after_truncate_arc()
403 let mut b = BytesMut::from(s); in freeze_after_split_off()
412 let mut bytes = BytesMut::from(&b"hello world"[..]); in fns_defined_for_bytes_mut()
425 let mut bytes = BytesMut::from(LONG); in reserve_convert()
430 let mut bytes = BytesMut::from(LONG); in reserve_convert()
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()
540 let mut bytes = BytesMut::new(); in extend_from_slice_mut()
549 let mut bytes = BytesMut::with_capacity(0); in extend_mut_without_size_hint()
588 let mut a = BytesMut::from("hello world boooo yah world zomg wat wat"); in advance_bytes_mut()
606 let mut a = BytesMut::from("hello world"); in advance_past_len()
651 let bytesmut = BytesMut::from(&b"The quick red fox"[..]); in partial_eq_bytesmut()
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()
769 let other = BytesMut::new(); in bytes_mut_unsplit_empty_other()
778 let mut buf = BytesMut::new(); in bytes_mut_unsplit_empty_self()
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()
935 use bytes::{Buf, BytesMut}; in bytes_buf_mut_reuse_when_fully_consumed()
936 let mut buf = BytesMut::new(); in bytes_buf_mut_reuse_when_fully_consumed()
952 let mut bytes = BytesMut::with_capacity(1024); in bytes_reserve_overflow()