derive_more icon indicating copy to clipboard operation
derive_more copied to clipboard

Feature: derive `Step`

Open SOF3 opened this issue 5 years ago • 1 comments
trafficstars

std::iter::Step is implemented for all integer types. It is useful to derive Step in newtypes that are intended to have ranges, e.g. a coordinate class.

It is a nightly feature step_trait, and should be a disabled-by-default feature.

SOF3 avatar Apr 03 '20 09:04 SOF3

Definitely open to accept PRs for this, even if it's a nigthly only trait for now.

JelteF avatar Dec 22 '23 00:12 JelteF