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!
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Oleg numbers
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.