Open nazar-pc opened 1 month ago
Specifically, this will need an implementation of WrapperTypeDecode<Wrapped = Vec<T>>
for these types, because Wrapped
has to be Into<Arc<[T]>>
. Since slices are unsized, they can’t implement Into
.
We might as well also do Rc<[T]>
.
Hi @nazar-pc is your issue get resolved or not ?
I can’t see any new PRs in the last few weeks that implement this feature. Is there something specific that you did that you think will resolve this issue?
This PR is implements the Box
part of this feature, but hasn’t been reviewed or merged recently:
https://github.com/paritytech/parity-scale-codec/pull/565
Arc<[T]>
is especially helpful in cases where something needs to be sent into a different thread, but cloning and double indirection are undesirable.Right now both fail something like this:
I'm not 100% sure, but suspect it is an upstream issue since downstream users will not be able to implement
WrapperTypeDecode
forBox<[T]>
orArc<[T]>
.