Files
rust/library
Guillaume Gomez 0e45047e81 Rollup merge of #128103 - folkertdev:unsigned-int-is-multiple-of, r=Amanieu
add `is_multiple_of` for unsigned integer types

tracking issue: https://github.com/rust-lang/rust/issues/128101

This adds the `.is_multiple_of` method on unsigned integers.

Returns `true` if `self` is an integer multiple of `rhs`, and false otherwise.

This function is equivalent to `self % rhs == 0`, except that it will not panic for `rhs == 0`. Instead, `0.is_multiple_of(0) == true`, and for any non-zero `n`, `n.is_multiple_of(0) == false`.
2024-07-28 20:07:45 +02:00
..
2024-06-06 22:50:45 -07:00
2024-06-19 13:54:51 +01:00
2024-07-26 13:26:33 +01:00
2024-07-26 13:26:33 +01:00
2024-07-26 13:26:33 +01:00
2024-06-19 13:54:51 +01:00