Home
last modified time | relevance | path

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

/linux/rust/proc-macro2/
H A Drcvec.rs71 pub(crate) fn with_capacity(cap: usize) -> Self { in with_capacity() method
73 inner: Vec::with_capacity(cap), in with_capacity()
H A Dfallback.rs173 pub(crate) fn with_capacity(cap: usize) -> Self { in with_capacity() method
175 inner: RcVecBuilder::with_capacity(cap), in with_capacity()
1035 let mut repr = String::with_capacity(string.len() + 2); in string()
H A Dparse.rs950 let mut bracketed = TokenStreamBuilder::with_capacity(3); in doc_comment()
/linux/rust/kernel/alloc/
H A Dkvec.rs501 pub fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity() function
796 let mut v = Self::with_capacity(n, flags)?; in from_elem()
1364 let mut vec1: KVec<usize> = KVec::with_capacity(c.len(), GFP_KERNEL).unwrap(); in test_kvec_retain()
1365 let mut vec2: KVec<usize> = KVec::with_capacity(c.len(), GFP_KERNEL).unwrap(); in test_kvec_retain()
1392 let mut func = KVec::with_capacity(10, GFP_KERNEL).unwrap(); in test_kvec_retain()
H A Dkbox.rs346 let mut buffer = super::Vec::<T, A>::with_capacity(len, flags)?; in pin_slice()
/linux/rust/syn/
H A Dbigint.rs16 let mut repr = String::with_capacity(self.digits.len()); in to_string()
H A Dpunctuated.rs523 let mut elements = Vec::with_capacity(self.len()); in into_iter()
/linux/rust/macros/
H A Dzeroable.rs
/linux/rust/pin-init/internal/src/
H A Dzeroable.rs
/linux/rust/kernel/
H A Did_pool.rs114 pub fn with_capacity(num_ids: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity() method
H A Dscatterlist.rs347 KVec::with_capacity(page_iter.page_count(), flags)?; in new()
420 /// let pages = VVec::<u8>::with_capacity(size, GFP_KERNEL)?;
H A Dstr.rs824 let mut buf = KVec::with_capacity(size, GFP_KERNEL)?; in try_from_fmt()
H A Dopp.rs93 let mut list = KVec::with_capacity(names.len() + 1, GFP_KERNEL)?; in to_c_str_array()
/linux/drivers/android/binder/
H A Dfreeze.rs331 KVVec::with_capacity(8, GFP_KERNEL).unwrap_or_else(|_err| KVVec::new()); in find_freeze_recipients()
372 let mut batch = KVVec::with_capacity(recipients.len(), GFP_KERNEL)?; in prepare_freeze_messages()
H A Dpage_range.rs309 let mut pages = KVVec::<PageInfo>::with_capacity(num_pages, GFP_KERNEL)?; in register_with_vma()
H A Dprocess.rs1542 let mut procs = KVec::with_capacity(3, GFP_KERNEL)?; in ioctl_freeze()
/linux/samples/rust/
H A Drust_dma.rs75 let pages = VVec::with_capacity(size, GFP_KERNEL)?; in probe()
/linux/drivers/android/binder/range_alloc/
H A Dtree.rs476 let mut tree = KVec::with_capacity(num_descriptors, GFP_KERNEL)?; in try_new()
481 let mut free_tree = KVec::with_capacity(num_descriptors, GFP_KERNEL)?; in try_new()
H A Darray.rs279 ranges: KVec::with_capacity(capacity, GFP_KERNEL)?, in try_new()