pub trait CodeMapper {
// Required methods
fn to_code(&self, platform: Platform) -> usize;
fn from_code(code: usize, platform: Platform) -> Option<Self>
where Self: Sized;
}Expand description
HashMap implementation of the CodeMapper trait
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".