Searched refs:with_capacity (Results 1 – 3 of 3) sorted by relevance
20 fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError>; in with_capacity() method78 fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity() method
18 let mut new_impl_generics = Vec::with_capacity(impl_generics.len()); in derive()
806 let mut buf = <Vec<_> as VecExt<_>>::with_capacity(size, GFP_KERNEL)?; in try_from_fmt()