0

Add `log2` and `log10` to `NonZeroU*` by scottmcm · Pull Request #92956 · rust-l...

 2 years ago
source link: https://github.com/rust-lang/rust/pull/92956
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Member

scottmcm commented 14 days ago

edited

This version is nice in that it doesn't need to worry about zeros, and thus doesn't have any error cases.

cc int_log tracking issue #70887

(I didn't add them to NonZeroI* despite it being on i* since allowing negatives bring back the error cases again.)


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK