Lines Matching +full:60 +full:v
15 /// let v = Vec::<u32>::with_capacity(20, GFP_KERNEL)?;
17 /// assert!(v.capacity() >= 20);
27 /// let mut v = Vec::new();
28 /// v.push(1, GFP_KERNEL)?;
29 /// assert_eq!(&v, &[1]);
31 /// v.push(2, GFP_KERNEL)?;
32 /// assert_eq!(&v, &[1, 2]);
35 fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError>; in push()
42 /// let mut v = Vec::new();
43 /// v.push(1, GFP_KERNEL)?;
45 /// v.extend_from_slice(&[20, 30, 40], GFP_KERNEL)?;
46 /// assert_eq!(&v, &[1, 20, 30, 40]);
48 /// v.extend_from_slice(&[50, 60], GFP_KERNEL)?;
49 /// assert_eq!(&v, &[1, 20, 30, 40, 50, 60]);
61 /// let mut v = Vec::new();
62 /// v.push(1, GFP_KERNEL)?;
64 /// v.reserve(10, GFP_KERNEL)?;
65 /// let cap = v.capacity();
68 /// v.reserve(10, GFP_KERNEL)?;
69 /// let new_cap = v.capacity();
79 let mut v = Vec::new(); in with_capacity() localVariable
80 <Self as VecExt<_>>::reserve(&mut v, capacity, flags)?; in with_capacity()
81 Ok(v) in with_capacity()
84 fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> { in push()
87 s[0].write(v); in push()
166 fn destructure<T>(v: &mut Vec<T>) -> (*mut T, usize, usize) { in destructure()
168 core::mem::swap(&mut tmp, v); in destructure()
181 unsafe fn rebuild<T>(v: &mut Vec<T>, ptr: *mut T, len: usize, cap: usize) { in rebuild()
184 core::mem::swap(&mut tmp, v); in rebuild()