SIGN IN SIGN UP
rust-lang / rust UNCLAIMED

Empowering everyone to build reliable and efficient software.

0 0 65 Rust

Rollup merge of #136511 - joshtriplett:nonzero-cast-signed-unsigned, r=dtolnay

Add `cast_signed` and `cast_unsigned` methods for `NonZero` types

Requested in https://github.com/rust-lang/rust/issues/125882 .

Note that this keeps the same names as the methods currently present on other
integer types. If we want to rename them, we can rename them all at the same
time.
J
Jacob Pratt committed
5178a3630e2a93cace40da112fde6c1695023bb6
Committed by GitHub <noreply@github.com> on 2/4/2025, 10:38:05 AM