Home
last modified time | relevance | path

Searched refs:with_capacity (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-6.6/rust/macros/
H A Dzeroable.rs17 let mut new_impl_generics = Vec::with_capacity(impl_generics.len());
/kernel/linux/linux-6.6/rust/alloc/
H A Dslice.rs506 let mut buf = Vec::with_capacity(capacity); in repeat()
714 let mut result = Vec::with_capacity(size); in concat()
734 let mut result = Vec::with_capacity(size); in join()
758 let mut result = Vec::with_capacity(size); in join()
H A Draw_vec.rs93 pub fn with_capacity(capacity: usize) -> Self { in with_capacity() functions
97 /// Like `with_capacity`, but guarantees the buffer is zeroed.
127 /// Like `with_capacity`, but parameterized over the choice of
/kernel/linux/linux-6.6/rust/alloc/vec/
H A Dmod.rs194 /// let mut vec = Vec::with_capacity(5);
275 /// can be slow. For this reason, it is recommended to use [`Vec::with_capacity`]
294 /// [`Vec::with_capacity(0)`][`Vec::with_capacity`], or by calling [`shrink_to_fit`]
361 /// [`Vec::with_capacity(n)`][`Vec::with_capacity`], will all produce a `Vec`
454 /// let mut vec = Vec::with_capacity(10);
474 /// let vec_units = Vec::<()>::with_capacity(10);
481 pub fn with_capacity(capacity: usize) -> Self { in with_capacity() functions
997 /// let mut vec: Vec<i32> = Vec::with_capacity(1
[all...]

Completed in 5 milliseconds