Breaking Change Proposal: Replace isize
with i32
or u32
as representations for enums.
#420
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
At the moment the enums represented in
raw.rs
useisize
which has different sizes (4 or 8 bytes) depending on the system.isize
as representation for enums and replaces it with eitheru32
ori32
, depending on whether the underlying constants have negative values.strum
as a dependency to add afrom_repr
method to the enums.This is a breaking change.