Home
last modified time | relevance | path

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

/openbmc/linux/rust/alloc/
H A 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
H A 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()
H A Dboxed.rs765 unsafe { RawVec::with_capacity_in(len, alloc).into_box(len) } in new_uninit_slice_in()
/openbmc/linux/rust/alloc/vec/
H A Dmod.rs482 Self::with_capacity_in(capacity, Global) in with_capacity()
727 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in() method
728 Vec { buf: RawVec::with_capacity_in(capacity, alloc), len: 0 } in with_capacity_in()
2262 Vec::with_capacity_in(self.capacity(), self.allocator().clone()), in split_off()
2267 let mut other = Vec::with_capacity_in(other_len, self.allocator().clone()); in split_off()