We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Tuples::size_hint
1 parent 3fe220b commit 6d1a35aCopy full SHA for 6d1a35a
tests/quick.rs
@@ -1184,6 +1184,18 @@ quickcheck! {
1184
assert_eq!(buffer.len(), a.len() % 4);
1185
exact_size(buffer)
1186
}
1187
+
1188
+ fn tuples_size_hint_inexact(a: Iter<u8>) -> bool {
1189
+ correct_size_hint(a.clone().tuples::<(_,)>())
1190
+ && correct_size_hint(a.clone().tuples::<(_, _)>())
1191
+ && correct_size_hint(a.tuples::<(_, _, _, _)>())
1192
+ }
1193
1194
+ fn tuples_size_hint_exact(a: Iter<u8, Exact>) -> bool {
1195
+ exact_size(a.clone().tuples::<(_,)>())
1196
+ && exact_size(a.clone().tuples::<(_, _)>())
1197
+ && exact_size(a.tuples::<(_, _, _, _)>())
1198
1199
1200
1201
// with_position
0 commit comments