Skip to main content

trait

ReversibleRange

The ReversibleRange trait describes a range that can be reversed.

Any type that conforms to ReversibleRange works with the builtin reversed() functions.

The ReversibleRange trait requires the type to define the __reversed__() method.

Note: iterators are currently non-raising.

Implemented traits

AnyType

Was this page helpful?