pub trait SignedVarIntTarget:
Debug
+ Eq
+ PartialEq
+ Sized
+ Copy {
type Unsigned: VarIntTarget<Signed = Self>;
// Provided methods
fn zigzag(from: Self) -> Self::Unsigned { ... }
fn unzigzag(from: Self::Unsigned) -> Self { ... }
}Expand description
Represents a signed scalar value that can be encoded to and decoded from a varint in ZigZag format.
Required Associated Types§
type Unsigned: VarIntTarget<Signed = Self>
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.