Skip to main content

abs_diff_i8

Function abs_diff_i8 

Source
pub fn abs_diff_i8(a: i8, b: i8) -> u8
Expand description

Absolute difference between two i8 values, returned as u8.

Widens through i16 so abs_diff_i8(i8::MIN, i8::MAX) returns 255 without overflowing.