Searched refs:with_capacity (Results 1 – 3 of 3) sorted by relevance
21 let mut new_impl_generics = Vec::with_capacity(impl_generics.len()); in derive()
318 pub fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity() function518 let mut v = Self::with_capacity(n, flags)?; in from_elem()
881 let mut buf = KVec::with_capacity(size, GFP_KERNEL)?; in try_from_fmt()