Heh, I guess NonZeroI{8,16,32,64} aren't a thing. Wonder why not? I guess something about the sign and zero bit would be weird?
-
Show this thread
-
Replying to @yoshuawuyts
iirc the rationale was that nobody could think of use cases during the rfc process, and they're easy to build out of tree as a lib if you have the unsigned ones
1 reply 0 retweets 0 likes -
Replying to @ManishEarth @yoshuawuyts1 reply 0 retweets 1 like
Replying to @ManishEarth
Heh, I actually do have a use case for them. Working with a C library that returns i32s, and the number 0 is special. So making it into an enum makes sense I think. https://docs.rs/libnghttp2-sys/0.1.1/libnghttp2_sys/struct.nghttp2_priority_spec.html#structfield.stream_id …
1:36 PM - 6 Jan 2019
0 replies
0 retweets
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.