Home
last modified time | relevance | path

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

/linux-6.15/rust/pin-init/internal/src/
H A Dzeroable.rs21 let mut new_impl_generics = Vec::with_capacity(impl_generics.len()); in derive()
/linux-6.15/rust/kernel/alloc/
H A Dkvec.rs318 pub fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity() function
518 let mut v = Self::with_capacity(n, flags)?; in from_elem()
/linux-6.15/rust/kernel/
H A Dstr.rs881 let mut buf = KVec::with_capacity(size, GFP_KERNEL)?; in try_from_fmt()