pub trait MapKey {
// Required method
fn as_key_bytes(&self) -> Vec<u8> ⓘ;
}Expand description
A scalar key that can be converted to the bytes used by a map index.
Required Methods§
Sourcefn as_key_bytes(&self) -> Vec<u8> ⓘ
fn as_key_bytes(&self) -> Vec<u8> ⓘ
Returns the key’s canonical little-endian representation.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".