-
Notifications
You must be signed in to change notification settings - Fork 43
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
Generic structs not supported #87
Comments
This crate was designed and implemented long before Rust got its generic constant types. I cannot tell for sure how much work it would be to support this. Also this crate is currently unmaintained unfortunately. |
Well, I'm expecting an implementation to work on any generic type, by making the When you say it's unmaintained, do you mean you aren't planning on making any modifications yourself, or that you wouldn't merge an eventual PR? If the former, I'm willing to make the change myself. |
Ideally someone would fork this crate and implement all the tons of feature requests that are already in the pipeline. If the fork is successful I'd totally support it by advertising it from this crate. |
I'm probably being nerd-sniped, but I also really want this feature... wouldn't co-maintaining the crate be easier? |
I do not have the energy to maintain this crate at the moment. Otherwise I would do it since it is a pretty nice utility and of use to many people out there. |
Maybe some day in the future I will have energy to maintain this crate again and will come back if there was not already a successor crate then. |
I understand, but I dislike forks—I'm not even sure how to name it—but if you don't have the energy to review PRs, then that's okay. I'll figure something out. |
Hi!
I'm trying to use
modular_bitfield
for an array of registers, which all follow the same format, but I'd like them to have different types.Thus, I have written the following:
However, I get this:
...which appears to mean that only non-generic
struct
s are supported. It would be nice if this was the case (by copying the struct's generic arguments &where
constraints), but before I work on adding support, are there any obvious caveats or blockers?Thanks!
The text was updated successfully, but these errors were encountered: