Trait ZigZag
zigzag
pub trait ZigZag: Signed + PrimInt where Self: AsPrimitive<Self::UInt>, { type UInt: Unsigned + PrimInt + AsPrimitive<Self>; fn encode(value: Self) -> Self::UInt { ... } fn decode(value: Self::UInt) -> Self { ... } }
type UInt: Unsigned + PrimInt + AsPrimitive<Self>
fn encode(value: Self) -> Self::UInt
fn decode(value: Self::UInt) -> Self
impl ZigZag for i128
type UInt = u128
impl ZigZag for i64
type UInt = u64
impl ZigZag for i32
type UInt = u32
impl ZigZag for i16
type UInt = u16
impl ZigZag for i8
type UInt = u8