Searched refs:with_capacity (Results 1 – 19 of 19) sorted by relevance
| /linux/rust/proc-macro2/ |
| H A D | rcvec.rs | 71 pub(crate) fn with_capacity(cap: usize) -> Self { in with_capacity() method 73 inner: Vec::with_capacity(cap), in with_capacity()
|
| H A D | fallback.rs | 173 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 D | parse.rs | 950 let mut bracketed = TokenStreamBuilder::with_capacity(3); in doc_comment()
|
| /linux/rust/kernel/alloc/ |
| H A D | kvec.rs | 501 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 D | kbox.rs | 346 let mut buffer = super::Vec::<T, A>::with_capacity(len, flags)?; in pin_slice()
|
| /linux/rust/syn/ |
| H A D | bigint.rs | 16 let mut repr = String::with_capacity(self.digits.len()); in to_string()
|
| H A D | punctuated.rs | 523 let mut elements = Vec::with_capacity(self.len()); in into_iter()
|
| /linux/rust/macros/ |
| H A D | zeroable.rs | |
| /linux/rust/pin-init/internal/src/ |
| H A D | zeroable.rs | |
| /linux/rust/kernel/ |
| H A D | id_pool.rs | 114 pub fn with_capacity(num_ids: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity() method
|
| H A D | scatterlist.rs | 347 KVec::with_capacity(page_iter.page_count(), flags)?; in new() 420 /// let pages = VVec::<u8>::with_capacity(size, GFP_KERNEL)?;
|
| H A D | str.rs | 824 let mut buf = KVec::with_capacity(size, GFP_KERNEL)?; in try_from_fmt()
|
| H A D | opp.rs | 93 let mut list = KVec::with_capacity(names.len() + 1, GFP_KERNEL)?; in to_c_str_array()
|
| /linux/drivers/android/binder/ |
| H A D | freeze.rs | 331 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 D | page_range.rs | 309 let mut pages = KVVec::<PageInfo>::with_capacity(num_pages, GFP_KERNEL)?; in register_with_vma()
|
| H A D | process.rs | 1542 let mut procs = KVec::with_capacity(3, GFP_KERNEL)?; in ioctl_freeze()
|
| /linux/samples/rust/ |
| H A D | rust_dma.rs | 75 let pages = VVec::with_capacity(size, GFP_KERNEL)?; in probe()
|
| /linux/drivers/android/binder/range_alloc/ |
| H A D | tree.rs | 476 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 D | array.rs | 279 ranges: KVec::with_capacity(capacity, GFP_KERNEL)?, in try_new()
|