Not a huge deal, but certainly something people might view as what is often called a "papercut" in the Rust community, as that syntax is supported by at least regular vec! and smallvec! as far as "Very Popular Data Structures™" go, and even in staticvec supporting it kind of just seemed like an immediate "must have" to me from day one.
The entire implementation of the staticvec! macro is just this, if it helps at all:
Not a huge deal, but certainly something people might view as what is often called a "papercut" in the Rust community, as that syntax is supported by at least regular
vec!
andsmallvec!
as far as "Very Popular Data Structures™" go, and even instaticvec
supporting it kind of just seemed like an immediate "must have" to me from day one.The entire implementation of the
staticvec!
macro is just this, if it helps at all: