Replies: 1 comment
-
There are two main Rust issues here. First, the default lifetime of Second, Rust disallows mutable aliasing, even if you just want a reference afterward. This means you cannot hold a mutable reference of
|
Beta Was this translation helpful? Give feedback.
-
Hi, this is yet another basic(-ish) rust question/request, but I'm struggling to have a query struct and pass it to/from functions. I understand why my code in the example here doesn't work, but not how to fix.
Does anyone have example code for this?
Updating noodles-util/examples/util_variant_query.rs to pass the Query around would be helpful here.
Beta Was this translation helpful? Give feedback.
All reactions