Mojo struct
StopIteration
struct StopIteration
A custom error type for Iterator's that run out of elements.
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable,
RegisterPassable,
TrivialRegisterPassable,
Writable
Methodsβ
write_toβ
write_to(self, mut writer: T)
This always writes "StopIteration".
Args:
- βwriter (
T): The writer to write to.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!