Skip to main content

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?