pub trait ToNumber: Copy {
// Required methods
fn to_u64(self) -> u64;
fn to_i64(self) -> i64;
}
Expand description
A trait for converting a value to a u64 for use in varint encodings.
Required 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.