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§