doesn't really work for structs with multiple members when we need to perform another_field.some_calls_returning_new_value() for this.member since rust doesn't allow calls up to the parent from the struct member to be updated, a bit confused on the semantic required.
error[E0277]: the trait bound `UbHdr: From<()>` is not satisfied
...
|
65 | #[deku_derive(DekuRead, DekuWrite)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<()>` is not implemented for `UbHdr`
|
= note: required for `()` to implement `Into<UbHdr>`
= note: required for `UbHdr` to implement `TryFrom<()>`
= note: required for `()` to implement `TryInto<UbHdr>`
= note: this error originates in the attribute macro `deku_derive` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0277`.
error.
Trying to do this by creating a whole new UbHdr struct in the update macro fails with the same From related error even though in neither case is there any sort of type conversion given that i'm providing the correct type to either the struct member or the entire struct replacment.
doesn't really work for structs with multiple members when we need to perform
another_field.some_calls_returning_new_value() for this.member
since rust doesn't allow calls up to the parent from the struct member to be updated, a bit confused on the semantic required.doesn't work either due to a somewhat opaque
error.
Trying to do this by creating a whole new
UbHdr
struct in theupdate
macro fails with the sameFrom
related error even though in neither case is there any sort of type conversion given that i'm providing the correct type to either the struct member or the entire struct replacment.