Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify write_page() implementations using a trait associated constant #2

Closed
eldruin opened this issue Aug 11, 2018 · 1 comment
Closed

Comments

@eldruin
Copy link
Owner

eldruin commented Aug 11, 2018

As suggested here, the page sizes could be defined by implementations of a PageSize trait for the different ICs.

However, implementing this would not compile at the moment.
This is blocked by upstream issue rust-lang/rust#42863

This was referenced Sep 9, 2018
@eldruin
Copy link
Owner Author

eldruin commented Nov 21, 2018

This was solved using a macro

@eldruin eldruin closed this as completed Nov 21, 2018
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

No branches or pull requests

1 participant