Skip to content

Implement MaxSize and Schema for enum_map::EnumMap - #300

Merged
max-heller merged 2 commits into
jamesmunns:mainfrom
sugar700:enum-map-v2_0
Jul 20, 2026
Merged

max-heller merged 2 commits into
jamesmunns:mainfrom
sugar700:enum-map-v2_0

Conversation

@sugar700

@sugar700 sugar700 commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

This was requested in enum_map, with the pull request at https://codeberg.org/sugar700/enum-map/pulls/170, however I decided against that due to experimental status of MaxSize trait.

I also implemented Schema, mostly because I could do so.

@netlify

netlify Bot commented Jul 11, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cute-starship-2d9c9b canceled.

Name Link
🔨 Latest commit 074f228
🔍 Latest deploy log https://app.netlify.com/projects/cute-starship-2d9c9b/deploys/6a5e630fc997800008e468d3

@sugar700

sugar700 commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor Author

May as well close this, I released enum-map 3.0.0, and currently it's not exactly possible to implement those traits for the newest version due to changes I did to make the interface nicer, due to missing language features.

@sugar700 sugar700 closed this Jul 20, 2026
@sugar700 sugar700 reopened this Jul 20, 2026
@sugar700

Copy link
Copy Markdown
Contributor Author

Or, actually, no, it is possible.

@sugar700

Copy link
Copy Markdown
Contributor Author

Updated the pull request to be for enum-map 3.0.0.

Comment thread source/postcard-schema-ng/src/impls/enum_map_v3_0.rs Outdated
Comment thread source/postcard-schema-ng/src/impls/enum_map_v3_0.rs Outdated
@sugar700
sugar700 force-pushed the enum-map-v2_0 branch 6 times, most recently from 155eb9b to c898109 Compare July 20, 2026 17:51
@sugar700
sugar700 requested a review from max-heller July 20, 2026 17:52
@max-heller
max-heller merged commit 118d274 into jamesmunns:main Jul 20, 2026
5 checks passed
@max-heller

Copy link
Copy Markdown
Collaborator

Thanks for the contribution!

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