Lines Matching refs:av2
113 let mut av2: ArrayVec<[i32; 4]> = av.clone().into_iter().collect(); in ArrayVec_iteration() localVariable
114 assert_eq!(av, av2); in ArrayVec_iteration()
117 for x in &mut av2 { in ArrayVec_iteration()
122 assert!(av.iter().zip(&av2).all(|(&a, &b)| a == -b)); in ArrayVec_iteration()
128 let mut av2 = array_vec!([i32; 8] => 4, 5, 6); in ArrayVec_append() localVariable
130 av.append(&mut av2); in ArrayVec_append()
132 assert_eq!(av2.as_slice(), &[]); in ArrayVec_append()
229 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
230 av2.splice(.., None); in ArrayVec_splice()
231 assert_eq!(av2, array_vec![]); in ArrayVec_splice()
233 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
234 av2.splice(..2, None); in ArrayVec_splice()
235 assert_eq!(av2, array_vec![3]); in ArrayVec_splice()
237 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
238 av2.splice(..3, None); in ArrayVec_splice()
239 assert_eq!(av2, array_vec![]); in ArrayVec_splice()
241 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
242 av2.splice(..=1, None); in ArrayVec_splice()
243 assert_eq!(av2, array_vec![3]); in ArrayVec_splice()
244 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
245 av2.splice(..=2, None); in ArrayVec_splice()
246 assert_eq!(av2, array_vec![]); in ArrayVec_splice()
248 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
249 av2.splice(0.., None); in ArrayVec_splice()
250 assert_eq!(av2, array_vec![]); in ArrayVec_splice()
251 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
252 av2.splice(1.., None); in ArrayVec_splice()
253 assert_eq!(av2, array_vec![1]); in ArrayVec_splice()
255 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
256 av2.splice(0..2, None); in ArrayVec_splice()
257 assert_eq!(av2, array_vec![3]); in ArrayVec_splice()
259 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
260 av2.splice(0..3, None); in ArrayVec_splice()
261 assert_eq!(av2, array_vec![]); in ArrayVec_splice()
262 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
263 av2.splice(1..2, None); in ArrayVec_splice()
264 assert_eq!(av2, array_vec![1, 3]); in ArrayVec_splice()
266 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
267 av2.splice(1..3, None); in ArrayVec_splice()
268 assert_eq!(av2, array_vec![1]); in ArrayVec_splice()
270 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
271 av2.splice(0..=1, None); in ArrayVec_splice()
272 assert_eq!(av2, array_vec![3]); in ArrayVec_splice()
274 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
275 av2.splice(0..=2, None); in ArrayVec_splice()
276 assert_eq!(av2, array_vec![]); in ArrayVec_splice()
278 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
279 av2.splice(1..=1, None); in ArrayVec_splice()
280 assert_eq!(av2, array_vec![1, 3]); in ArrayVec_splice()
282 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
283 av2.splice(1..=2, None); in ArrayVec_splice()
284 assert_eq!(av2, array_vec![1]); in ArrayVec_splice()
287 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
288 av2.splice(.., 4..=6); in ArrayVec_splice()
289 assert_eq!(av2, array_vec![4, 5, 6]); in ArrayVec_splice()
291 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
292 av2.splice(..2, 4..=6); in ArrayVec_splice()
293 assert_eq!(av2, array_vec![4, 5, 6, 3]); in ArrayVec_splice()
295 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
296 av2.splice(..3, 4..=6); in ArrayVec_splice()
297 assert_eq!(av2, array_vec![4, 5, 6]); in ArrayVec_splice()
299 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
300 av2.splice(..=1, 4..=6); in ArrayVec_splice()
301 assert_eq!(av2, array_vec![4, 5, 6, 3]); in ArrayVec_splice()
303 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
304 av2.splice(..=2, 4..=6); in ArrayVec_splice()
305 assert_eq!(av2, array_vec![4, 5, 6]); in ArrayVec_splice()
307 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
308 av2.splice(0.., 4..=6); in ArrayVec_splice()
309 assert_eq!(av2, array_vec![4, 5, 6]); in ArrayVec_splice()
311 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
312 av2.splice(1.., 4..=6); in ArrayVec_splice()
313 assert_eq!(av2, array_vec![1, 4, 5, 6]); in ArrayVec_splice()
315 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
316 av2.splice(0..2, 4..=6); in ArrayVec_splice()
317 assert_eq!(av2, array_vec![4, 5, 6, 3]); in ArrayVec_splice()
319 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
320 av2.splice(0..3, 4..=6); in ArrayVec_splice()
321 assert_eq!(av2, array_vec![4, 5, 6]); in ArrayVec_splice()
323 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
324 av2.splice(1..2, 4..=6); in ArrayVec_splice()
325 assert_eq!(av2, array_vec![1, 4, 5, 6, 3]); in ArrayVec_splice()
327 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
328 av2.splice(1..3, 4..=6); in ArrayVec_splice()
329 assert_eq!(av2, array_vec![1, 4, 5, 6]); in ArrayVec_splice()
331 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
332 av2.splice(0..=1, 4..=6); in ArrayVec_splice()
333 assert_eq!(av2, array_vec![4, 5, 6, 3]); in ArrayVec_splice()
335 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
336 av2.splice(0..=2, 4..=6); in ArrayVec_splice()
337 assert_eq!(av2, array_vec![4, 5, 6]); in ArrayVec_splice()
339 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
340 av2.splice(1..=1, 4..=6); in ArrayVec_splice()
341 assert_eq!(av2, array_vec![1, 4, 5, 6, 3]); in ArrayVec_splice()
343 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
344 av2.splice(1..=2, 4..=6); in ArrayVec_splice()
345 assert_eq!(av2, array_vec![1, 4, 5, 6]); in ArrayVec_splice()
348 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
349 av2.splice(.., Some(4)); in ArrayVec_splice()
350 assert_eq!(av2, array_vec![4]); in ArrayVec_splice()
352 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
353 av2.splice(..2, Some(4)); in ArrayVec_splice()
354 assert_eq!(av2, array_vec![4, 3]); in ArrayVec_splice()
356 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
357 av2.splice(1.., Some(4)); in ArrayVec_splice()
358 assert_eq!(av2, array_vec![1, 4]); in ArrayVec_splice()
360 let mut av2 = av.clone(); in ArrayVec_splice() localVariable
361 av2.splice(1..=1, Some(4)); in ArrayVec_splice()
362 assert_eq!(av2, array_vec![1, 4, 3]); in ArrayVec_splice()