Is there a way to export an array of hardcoded data in @rustlang? In JavaScript it would be `export default [ /*...*/ ]`...
-
-
Maybe lazy_static (https://github.com/rust-lang-nursery/lazy-static.rs/blob/master/README.md …)?
1 reply 0 retweets 0 likes
Replying to @pwrdwnsys @github
this is good advice if you need allocation
0 replies
1 retweet
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.