@@ -47,7 +47,7 @@ pub enum GenericIterable<'a> {
47
47
}
48
48
49
49
impl < ' a , ' py : ' a > GenericIterable < ' a > {
50
- pub fn into_sequence_iterator (
50
+ pub fn as_sequence_iterator (
51
51
& self ,
52
52
py : Python < ' py > ,
53
53
) -> PyResult < Box < dyn Iterator < Item = PyResult < & ' a PyAny > > + ' a > > {
@@ -335,7 +335,7 @@ impl<'a> GenericIterable<'a> {
335
335
GenericIterable :: Sequence ( collection) => validate ! ( collection. iter( ) ?) ,
336
336
GenericIterable :: Iterator ( collection) => validate ! ( collection. iter( ) ?) ,
337
337
GenericIterable :: JsonArray ( collection) => validate ! ( collection. iter( ) . map( Ok ) ) ,
338
- other => validate ! ( other. into_sequence_iterator ( py) ?) ,
338
+ other => validate ! ( other. as_sequence_iterator ( py) ?) ,
339
339
}
340
340
}
341
341
@@ -377,7 +377,7 @@ impl<'a> GenericIterable<'a> {
377
377
GenericIterable :: Sequence ( collection) => validate_set ! ( collection. iter( ) ?) ,
378
378
GenericIterable :: Iterator ( collection) => validate_set ! ( collection. iter( ) ?) ,
379
379
GenericIterable :: JsonArray ( collection) => validate_set ! ( collection. iter( ) . map( Ok ) ) ,
380
- other => validate_set ! ( other. into_sequence_iterator ( py) ?) ,
380
+ other => validate_set ! ( other. as_sequence_iterator ( py) ?) ,
381
381
}
382
382
}
383
383
@@ -412,7 +412,7 @@ impl<'a> GenericIterable<'a> {
412
412
GenericIterable :: JsonArray ( collection) => {
413
413
no_validator_iter_to_vec ( py, input, collection. iter ( ) . map ( Ok ) , max_length_check)
414
414
}
415
- other => no_validator_iter_to_vec ( py, input, other. into_sequence_iterator ( py) ?, max_length_check) ,
415
+ other => no_validator_iter_to_vec ( py, input, other. as_sequence_iterator ( py) ?, max_length_check) ,
416
416
}
417
417
}
418
418
}
0 commit comments