unchecked_add in core::intrinsics - Rust
Description: Returns the result of an unchecked addition, resulting in undefined behavior when `x + y > T::MAX` or `x + y < T::MIN`.

## unchecked_add

# Function unchecked_add

Source

    pub const unsafe fn unchecked_add<T: Copy>(x: T, y: T) -> T

🔬This is a nightly-only experimental API. (`core_intrinsics`)
Expand description

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`.