Home
last modified time | relevance | path

Searched refs:with_capacity_in (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.6/rust/alloc/
Draw_vec.rs94 Self::with_capacity_in(capacity, Global) in with_capacity()
131 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in() method
Dslice.rs141 let mut vec = Vec::with_capacity_in(s.len(), alloc); in to_vec()
164 let mut v = Vec::with_capacity_in(s.len(), alloc); in to_vec()
Dboxed.rs753 unsafe { RawVec::with_capacity_in(len, alloc).into_box(len) } in new_uninit_slice_in()
/Linux-v6.6/rust/alloc/vec/
Dmod.rs482 Self::with_capacity_in(capacity, Global) in with_capacity()
729 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in() method
730 Vec { buf: RawVec::with_capacity_in(capacity, alloc), len: 0 } in with_capacity_in()
2261 Vec::with_capacity_in(self.capacity(), self.allocator().clone()), in split_off()
2266 let mut other = Vec::with_capacity_in(other_len, self.allocator().clone()); in split_off()