stable-structures
stable-structures copied to clipboard
Implement `BoundedStorable` for more data types
help: the following other types implement trait `BoundedStorable`:
()
(A, B)
Would be nice to implement this for (A, B, C...) in accordance with candid.
Also for Vec<T> and [T; N], where T is BoundedStorable and N: usize
Would be nice to implement this for (A, B, C...) in accordance with candid.
I agree. We don't rely on candid for the (A, B) encoding though and neither should we for (A, B, C). If you have the cycles maybe this is something you'd like to contribute? :)
Also for Vec<T> and [T; N], where T is BoundedStorable and N: usize
Vec<T> is not bounded, so we cannot implement BoundedStorable for it. We already have a BoundedStorable implementation for [T; N] (see here)