Heh, this looks really cool! — compile time number evaluation
https://crates.io/crates/typenum
-
Show this thread
Example use case: what if you wanted your API to only accept powers of 2? There's a way to restrict that! https://docs.rs/typenum/1.10.0/typenum/marker_traits/trait.PowerOfTwo.html … In Hypercore we use runtime assertions for exactly this guarantee. Ergonomics aside, I'm really excited that this is even possible! Even on stable!
4:16 PM - 5 Aug 2018
0 replies
0 retweets
5 likes
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.