Repository navigation
|
Hi everyone! I'm currently trying to convert a Vec (which I get from another function) to an FixedSizedList, but I cannot figure out how to do it. I can't use the ListBuilder, because it requires a StructBuilder as its base, but I already have the finished structs. Can you help me? |
Answered by
SirRocket
Nov 23, 2026
Replies: 1 comment 3 replies
|
There's an option of using Though this depends on what your desired output looks like, which I can only guess at. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figured it out!
For everyone else running into this issue:
First, add this function to convert from
StructArrayto&dyn Array:Then use it to convert your values into a
Vec<&dyn Array>:And then pass them to concat and the FixedSizedList: