Lines Matching refs:splits
10079 let splits: &[&[_]] = &[&[1], &[3], &[5]]; localVariable
10080 assert_eq!(xs.split(|x| *x % 2 == 0).collect::<Vec<_>>(), splits);
10081 let splits: &[&[_]] = &[&[], &[2, 3, 4, 5]]; localVariable
10082 assert_eq!(xs.split(|x| *x == 1).collect::<Vec<_>>(), splits);
10083 let splits: &[&[_]] = &[&[1, 2, 3, 4], &[]]; localVariable
10084 assert_eq!(xs.split(|x| *x == 5).collect::<Vec<_>>(), splits);
10085 let splits: &[&[_]] = &[&[1, 2, 3, 4, 5]]; localVariable
10086 assert_eq!(xs.split(|x| *x == 10).collect::<Vec<_>>(), splits);
10087 let splits: &[&[_]] = &[&[], &[], &[], &[], &[], &[]]; localVariable
10088 assert_eq!(xs.split(|_| true).collect::<Vec<&[i32]>>(), splits);
10091 let splits: &[&[i32]] = &[&[]]; localVariable
10092 assert_eq!(xs.split(|x| *x == 5).collect::<Vec<&[i32]>>(), splits);
10099 let splits: &[&[_]] = &[&[1, 2], &[3, 4], &[5]]; localVariable
10100 assert_eq!(xs.split_inclusive(|x| *x % 2 == 0).collect::<Vec<_>>(), splits);
10101 let splits: &[&[_]] = &[&[1], &[2, 3, 4, 5]]; localVariable
10102 assert_eq!(xs.split_inclusive(|x| *x == 1).collect::<Vec<_>>(), splits);
10103 let splits: &[&[_]] = &[&[1, 2, 3, 4, 5]]; localVariable
10104 assert_eq!(xs.split_inclusive(|x| *x == 5).collect::<Vec<_>>(), splits);
10105 let splits: &[&[_]] = &[&[1, 2, 3, 4, 5]]; localVariable
10106 assert_eq!(xs.split_inclusive(|x| *x == 10).collect::<Vec<_>>(), splits);
10107 let splits: &[&[_]] = &[&[1], &[2], &[3], &[4], &[5]]; localVariable
10108 assert_eq!(xs.split_inclusive(|_| true).collect::<Vec<&[i32]>>(), splits);
10111 let splits: &[&[i32]] = &[&[]]; localVariable
10112 assert_eq!(xs.split_inclusive(|x| *x == 5).collect::<Vec<&[i32]>>(), splits);
10119 let splits: &[&[_]] = &[&[5], &[3, 4], &[1, 2]]; localVariable
10120 assert_eq!(xs.split_inclusive(|x| *x % 2 == 0).rev().collect::<Vec<_>>(), splits);
10121 let splits: &[&[_]] = &[&[2, 3, 4, 5], &[1]]; localVariable
10122 assert_eq!(xs.split_inclusive(|x| *x == 1).rev().collect::<Vec<_>>(), splits);
10123 let splits: &[&[_]] = &[&[1, 2, 3, 4, 5]]; localVariable
10124 assert_eq!(xs.split_inclusive(|x| *x == 5).rev().collect::<Vec<_>>(), splits);
10125 let splits: &[&[_]] = &[&[1, 2, 3, 4, 5]]; localVariable
10126 assert_eq!(xs.split_inclusive(|x| *x == 10).rev().collect::<Vec<_>>(), splits);
10127 let splits: &[&[_]] = &[&[5], &[4], &[3], &[2], &[1]]; localVariable
10128 assert_eq!(xs.split_inclusive(|_| true).rev().collect::<Vec<_>>(), splits);
10131 let splits: &[&[i32]] = &[&[]]; localVariable
10132 assert_eq!(xs.split_inclusive(|x| *x == 5).rev().collect::<Vec<_>>(), splits);
10139 let splits: &[&[_]] = &[&[1, 2], &[3, 4], &[5]]; localVariable
10140 assert_eq!(xs.split_inclusive_mut(|x| *x % 2 == 0).collect::<Vec<_>>(), splits);
10141 let splits: &[&[_]] = &[&[1], &[2, 3, 4, 5]]; localVariable
10142 assert_eq!(xs.split_inclusive_mut(|x| *x == 1).collect::<Vec<_>>(), splits);
10143 let splits: &[&[_]] = &[&[1, 2, 3, 4, 5]]; localVariable
10144 assert_eq!(xs.split_inclusive_mut(|x| *x == 5).collect::<Vec<_>>(), splits);
10145 let splits: &[&[_]] = &[&[1, 2, 3, 4, 5]]; localVariable
10146 assert_eq!(xs.split_inclusive_mut(|x| *x == 10).collect::<Vec<_>>(), splits);
10147 let splits: &[&[_]] = &[&[1], &[2], &[3], &[4], &[5]]; localVariable
10148 assert_eq!(xs.split_inclusive_mut(|_| true).collect::<Vec<_>>(), splits);
10151 let splits: &[&[i32]] = &[&[]]; localVariable
10152 assert_eq!(xs.split_inclusive_mut(|x| *x == 5).collect::<Vec<_>>(), splits);
10159 let splits: &[&[_]] = &[&[5], &[3, 4], &[1, 2]]; localVariable
10160 assert_eq!(xs.split_inclusive_mut(|x| *x % 2 == 0).rev().collect::<Vec<_>>(), splits);
10161 let splits: &[&[_]] = &[&[2, 3, 4, 5], &[1]]; localVariable
10162 assert_eq!(xs.split_inclusive_mut(|x| *x == 1).rev().collect::<Vec<_>>(), splits);
10163 let splits: &[&[_]] = &[&[1, 2, 3, 4, 5]]; localVariable
10164 assert_eq!(xs.split_inclusive_mut(|x| *x == 5).rev().collect::<Vec<_>>(), splits);
10165 let splits: &[&[_]] = &[&[1, 2, 3, 4, 5]]; localVariable
10166 assert_eq!(xs.split_inclusive_mut(|x| *x == 10).rev().collect::<Vec<_>>(), splits);
10167 let splits: &[&[_]] = &[&[5], &[4], &[3], &[2], &[1]]; localVariable
10168 assert_eq!(xs.split_inclusive_mut(|_| true).rev().collect::<Vec<_>>(), splits);
10171 let splits: &[&[i32]] = &[&[]]; localVariable
10172 assert_eq!(xs.split_inclusive_mut(|x| *x == 5).rev().collect::<Vec<_>>(), splits);
10179 let splits: &[&[_]] = &[&[1, 2, 3, 4, 5]]; localVariable
10180 assert_eq!(xs.splitn(1, |x| *x % 2 == 0).collect::<Vec<_>>(), splits);
10181 let splits: &[&[_]] = &[&[1], &[3, 4, 5]]; localVariable
10182 assert_eq!(xs.splitn(2, |x| *x % 2 == 0).collect::<Vec<_>>(), splits);
10183 let splits: &[&[_]] = &[&[], &[], &[], &[4, 5]]; localVariable
10184 assert_eq!(xs.splitn(4, |_| true).collect::<Vec<_>>(), splits);
10187 let splits: &[&[i32]] = &[&[]]; localVariable
10188 assert_eq!(xs.splitn(2, |x| *x == 5).collect::<Vec<_>>(), splits);
10195 let splits: &[&mut [_]] = &[&mut [1, 2, 3, 4, 5]]; localVariable
10196 assert_eq!(xs.splitn_mut(1, |x| *x % 2 == 0).collect::<Vec<_>>(), splits);
10197 let splits: &[&mut [_]] = &[&mut [1], &mut [3, 4, 5]]; localVariable
10198 assert_eq!(xs.splitn_mut(2, |x| *x % 2 == 0).collect::<Vec<_>>(), splits);
10199 let splits: &[&mut [_]] = &[&mut [], &mut [], &mut [], &mut [4, 5]]; localVariable
10200 assert_eq!(xs.splitn_mut(4, |_| true).collect::<Vec<_>>(), splits);
10203 let splits: &[&mut [i32]] = &[&mut []]; localVariable
10204 assert_eq!(xs.splitn_mut(2, |x| *x == 5).collect::<Vec<_>>(), splits);
10211 let splits: &[&[_]] = &[&[5], &[3], &[1]]; localVariable
10212 assert_eq!(xs.split(|x| *x % 2 == 0).rev().collect::<Vec<_>>(), splits);
10213 let splits: &[&[_]] = &[&[2, 3, 4, 5], &[]]; localVariable
10214 assert_eq!(xs.split(|x| *x == 1).rev().collect::<Vec<_>>(), splits);
10215 let splits: &[&[_]] = &[&[], &[1, 2, 3, 4]]; localVariable
10216 assert_eq!(xs.split(|x| *x == 5).rev().collect::<Vec<_>>(), splits);
10217 let splits: &[&[_]] = &[&[1, 2, 3, 4, 5]]; localVariable
10218 assert_eq!(xs.split(|x| *x == 10).rev().collect::<Vec<_>>(), splits);
10221 let splits: &[&[i32]] = &[&[]]; localVariable
10222 assert_eq!(xs.split(|x| *x == 5).rev().collect::<Vec<&[i32]>>(), splits);
10229 let splits: &[&[_]] = &[&[1, 2, 3, 4, 5]]; localVariable
10230 assert_eq!(xs.rsplitn(1, |x| *x % 2 == 0).collect::<Vec<_>>(), splits);
10231 let splits: &[&[_]] = &[&[5], &[1, 2, 3]]; localVariable
10232 assert_eq!(xs.rsplitn(2, |x| *x % 2 == 0).collect::<Vec<_>>(), splits);
10233 let splits: &[&[_]] = &[&[], &[], &[], &[1, 2]]; localVariable
10234 assert_eq!(xs.rsplitn(4, |_| true).collect::<Vec<_>>(), splits);
10237 let splits: &[&[i32]] = &[&[]]; localVariable
10238 assert_eq!(xs.rsplitn(2, |x| *x == 5).collect::<Vec<&[i32]>>(), splits);