Commit e27656c
authored
Rollup merge of #137383 - folkertdev:stabilize-unsigned-is-multiple-of, r=Noratrieb
stabilize `unsigned_is_multiple_of`
tracking issue: rust-lang/rust#128101
fcp completed in: rust-lang/rust#128101 (comment)
### Public API
A version of this for all the unsigned types
```rust
fn is_multiple_of(lhs: u64, rhs: u64) -> bool {
match rhs {
// prevent division by zero
0 => lhs == 0,
_ => lhs % rhs == 0,
}
}
```File tree
0 file changed
+0
-0
lines changed0 file changed
+0
-0
lines changed
0 commit comments