Trait KeyMappingsRegistrar
pub trait KeyMappingsRegistrar {
// Required method
fn register_key_mapping(&mut self, mapping: KeyRegistration);
}Expand description
Registrar operations for key mappings.
Required Methods§
fn register_key_mapping(&mut self, mapping: KeyRegistration)
fn register_key_mapping(&mut self, mapping: KeyRegistration)
Register a Controls binding owned by the calling mod (RegisterKeyMappingsEvent).
Called from Hooks::register; invalid or duplicate local ids refuse startup.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".