pub const fn decode_i32(value: u32) -> i32Expand description
Recover the signed i32 from a zigzag-encoded u32.
ยงExample
use wire_codec::zigzag;
assert_eq!(zigzag::decode_i32(0), 0);
assert_eq!(zigzag::decode_i32(1), -1);
assert_eq!(zigzag::decode_i32(u32::MAX), i32::MIN);