Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Add by-reference array accessors to EnumMap #29

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

Fuuzetsu
Copy link
Contributor

@Fuuzetsu Fuuzetsu commented Oct 5, 2022

An alternative would be to simply expose the array field as pub: whatever works. I went with this as it allows adding simple docs at the same time.

Fixes #26.

An alternative would be to simply expose the `array` field as `pub`:
whatever works. I went with this as it allows adding simple docs at the
same time.

Fixes KamilaBorowska#26.
@KamilaBorowska KamilaBorowska merged commit f1fa687 into KamilaBorowska:master Mar 10, 2023
@Fuuzetsu
Copy link
Contributor Author

In hind-sight, these probably should have been const...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose the array field (or add as_array(&self) -> &K::Array)
2 participants