use of End Array. #663
Unanswered
doronb4637
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello i want to use an end array like in this example, but the code doesn't compile and i couldn't find any source to help, any ideas?
#[derive(Debug, PartialEq, DekuRead, DekuWrite)]
pub struct EndArrayExample {
pub bools: Vec<E_Boolean>,
}
E_Boolean:
#[derive(Debug, PartialEq, DekuRead, DekuWrite)]
#[deku(id_type = "u8",ctx = "bit_size: usize",ctx_default = "8", bits = "bit_size")]
#[repr(u8)]
enum E_Boolean {
False = 0,
True = 1,
}
All reactions