0
Add `log2` and `log10` to `NonZeroU*` by scottmcm · Pull Request #92956 · rust-l...
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.
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.)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK