Trait
Strideable
A contiguous, one-dimensional space whose values can be offset and measured.
Details
Important: Default implementations of infix== and infix< are available if Stride conforms to Deinitializable. These implementations depend on Stride's implementation, meaning that if a type conforming to Strideable is its own Stride type, it must also provide its own implementations of infix== and infix< to avoid infinite recursion.
Members
Functions
fun offset(to other: Self) -> ???
Returns the offset to be added to self to get other.
fun advance(by offset: ???) -> Self
Returns self offset by the given amount.