Home
last modified time | relevance | path

Searched refs:with_capacity (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.1/rust/alloc/
Dslice.rs571 let mut buf = Vec::with_capacity(capacity); in repeat()
779 let mut result = Vec::with_capacity(size); in concat()
799 let mut result = Vec::with_capacity(size); in join()
823 let mut result = Vec::with_capacity(size); in join()
1111 let mut buf = Vec::with_capacity(len / 2); in merge_sort()
Dborrow.rs474 let mut s = String::with_capacity(lhs.len() + rhs.len()); in add_assign()
491 let mut s = String::with_capacity(lhs.len() + rhs.len()); in add_assign()
Draw_vec.rs94 pub fn with_capacity(capacity: usize) -> Self { in with_capacity() method
Dboxed.rs617 unsafe { RawVec::with_capacity(len).into_box(len) } in new_uninit_slice()
1437 let buf = RawVec::with_capacity(len); in from()
/Linux-v6.1/rust/alloc/vec/
Dmod.rs471 pub fn with_capacity(capacity: usize) -> Self { in with_capacity() method