Home
last modified time | relevance | path

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

/Linux-v6.1/rust/alloc/
Draw_vec.rs95 Self::with_capacity_in(capacity, Global) in with_capacity()
132 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in() method
Dslice.rs206 let mut vec = Vec::with_capacity_in(s.len(), alloc); in to_vec()
229 let mut v = Vec::with_capacity_in(s.len(), alloc); in to_vec()
Dboxed.rs739 unsafe { RawVec::with_capacity_in(len, alloc).into_box(len) } in new_uninit_slice_in()
/Linux-v6.1/rust/alloc/vec/
Dmod.rs472 Self::with_capacity_in(capacity, Global) in with_capacity()
616 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in() method
617 Vec { buf: RawVec::with_capacity_in(capacity, alloc), len: 0 } in with_capacity_in()
1996 Vec::with_capacity_in(self.capacity(), self.allocator().clone()), in split_off()
2001 let mut other = Vec::with_capacity_in(other_len, self.allocator().clone()); in split_off()