Skip to main content

BigMapKey

Trait BigMapKey 

Source
pub trait BigMapKey:
    Clone
    + Copy
    + Eq
    + PartialEq
    + Hash {
    // Required methods
    fn to_u64(&self) -> u64;
    fn from_u64(value: u64) -> Self;
}
Expand description

Key type for BigMap: must be convertible to/from u64.

Required Methods§

Source

fn to_u64(&self) -> u64

Converts the key to its u64 representation.

Source

fn from_u64(value: u64) -> Self

Reconstructs a key from its u64 representation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§