We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am wondering whether it is possible to define assertions over (anonymous) tuple structs, as in the following example:
#[derive(DekuRead, DekuWrite)] #[deku(type = "u8", bits = "1")] pub enum RegisterOrValue { #[deku(id = "0b0")] Field(#[deku(assert = "*??? < 32")] u8), }
Is there some deku internal name that could be used to reference the parsed u8?
The text was updated successfully, but these errors were encountered:
Try the following: #[deku(assert = "*field_0 < 32")] u8
#[deku(assert = "*field_0 < 32")] u8
Sorry, something went wrong.
No branches or pull requests
I am wondering whether it is possible to define assertions over (anonymous) tuple structs, as in the following example:
Is there some deku internal name that could be used to reference the parsed u8?
The text was updated successfully, but these errors were encountered: