Open dpc opened 7 years ago
I have a ArcRef<Vec<u8>, [u8]>. I'd like to turn it into two ArcRef<Vec<u8>, [u8]>s, each a subslice (something like split does for strings etc.). I need something like a map, but that allows me to return two new ArcRefs.
ArcRef<Vec<u8>, [u8]>
split
ArcRef
This might be resolved now. ArcRef is Clone which allows one to duplicate the handle and then map the two instances independently into the sublisces.
Clone
I have a
ArcRef<Vec<u8>, [u8]>
. I'd like to turn it into twoArcRef<Vec<u8>, [u8]>
s, each a subslice (something likesplit
does for strings etc.). I need something like a map, but that allows me to return two newArcRef
s.