TypeError for a non-iterable operand.
(&self, o: Val)
| 284 | |
| 285 | // TypeError for a non-iterable operand. |
| 286 | fn not_iterable(&self, o: Val) -> VmErr { |
| 287 | VmErr::TypeMsg(s!("'", str self.type_name(o), "' object is not iterable")) |
| 288 | } |
| 289 | |
| 290 | /* Build an IterCursor so short-circuit builtins (e.g. `all(range(10**6))`) stop at the first hit instead of pre-materialising. TypeError on non-iterables. */ |
| 291 | pub(in crate::modules::vm) fn iter_cursor(&self, o: Val) -> Result<IterCursor, VmErr> { |
no outgoing calls
no test coverage detected