Skip to main content

MapKey

Trait MapKey 

Source
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§

Source

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".

Implementations on Foreign Types§

Source§

impl MapKey for i32

Source§

impl MapKey for i64

Source§

impl MapKey for u32

Source§

impl MapKey for u64

Implementors§