pub trait ToU64 {
// Required method
fn to_u64(self) -> u64;
}Expand description
A conversion trait for unsigned integer types smaller than or equal to 64-bits.
This trait exists because usize doesn’t implement Into<u64>. We only support 32 and 64 bit
architectures because of consensus code so we can infallibly do the conversion.