You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the current implementation of variable-length fields (when using heapless Vecs), you are limited to a Vec of length 32 or less. This is because the underlying storage is a [u8; N], and Default::default() is used to initialize the static cell. However, the Default trait in the standard library is only implemented for [u8; 32] and smaller. Attempting to use a larger heapless Vec leads to a compile error (rust-lang/rust#61415).
The text was updated successfully, but these errors were encountered:
With the current implementation of variable-length fields (when using heapless
Vec
s), you are limited to aVec
of length 32 or less. This is because the underlying storage is a[u8; N]
, andDefault::default()
is used to initialize the static cell. However, theDefault
trait in the standard library is only implemented for[u8; 32]
and smaller. Attempting to use a larger heaplessVec
leads to a compile error (rust-lang/rust#61415).The text was updated successfully, but these errors were encountered: