Function encode

Source
pub fn encode<T>(x: T) -> T::Unsigned
where T: Signed,
Expand description

Encode an integer into zig-zag encoding.