Description
Hi Tony,
Unless I'm mistaken, in der version 0.6, the inner
field of a SequenceOf
struct is not public: would it be possible to get a mutable pointer to that ArrayVec? From that, I think I should be able to call any of the methods of slice
(e.g. the sort
method) on the underlying data since it implements the AsRef
structure. Is that correct?
My use case is the following: I am building a lookup table of u32
s, stored as a SequenceOf<u32, 256>
. Prior to encoding it, I want to ensure it's sorted so I can do a binary search on that data upon loading it.
Another option would be for me to store the data as an ArrayVec
and then initialize the SequenceOf
from that ArrayVec
(probably by moving the data) when encoding it, but that seems less straightforward.
Thanks for your help