pub const unsafe fn unchecked_add<T>(x: T, y: T) -> Twhere
T: Copy,
core_intrinsics)
Returns the result of an unchecked addition, resulting in undefined behavior when x + y > T::MAX or x + y < T::MIN.
The stable counterpart of this intrinsic is unchecked_add on the various integer types, such as u16::unchecked_add and i64::unchecked_add.
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/intrinsics/fn.unchecked_add.html