Skip to content

feat: add Step, Step instances, mixed sign tryFrom, some arithmetic#2

Open
abentkamp wants to merge 5 commits into
mainfrom
step
Open

feat: add Step, Step instances, mixed sign tryFrom, some arithmetic#2
abentkamp wants to merge 5 commits into
mainfrom
step

Conversation

@abentkamp
Copy link
Copy Markdown
Collaborator

This PR adds:

  • mixed sign try/try_from impls
  • iter.range.Step and its impls for integers
  • unchecked_X and checked_X_unsigned arithmetic functions

The Step impls are modeled after the official Rust implementation. In hindsight, maybe converting to mathematical integers and back would have been simpler?

@abentkamp abentkamp requested a review from maximebuyse May 6, 2026 09:06
Comment thread core-models/src/core/iter.rs
Comment thread core-models/src/core/iter.rs
Comment thread core-models/src/core/convert.rs
Comment thread core-models/src/core/convert.rs Outdated
Comment thread core-models/src/core/iter.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants