cairo_lang_sierra::debug_info

Trait IdAsHashKey

source
pub trait IdAsHashKey: Hash + Eq {
    // Required methods
    fn get(&self) -> u64;
    fn new(id: u64) -> Self;
}
Expand description

Trait for handling serde for the ids as map keys.

Required Methods§

source

fn get(&self) -> u64

Gets the inner id.

source

fn new(id: u64) -> Self

Returns a new id from the given value.

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.

Implementors§