CommandId

Type Alias CommandId 

Source
pub type CommandId = LocationHash;
Expand description

An alias over LocationHash so we have a semantic type but can change the underlying implementation whenever. See Event::Command.

Aliased Type§

pub struct CommandId(pub u64);

Tuple Fields§

§0: u64

Implementations§

Source§

impl CommandId

Source

pub fn set_enabled(&self, cx: &mut Cx, enabled: bool)

Source

pub fn set_key(&self, cx: &mut Cx, key_code: KeyCode)

Source

pub fn set_key_shift(&self, cx: &mut Cx, key_code: KeyCode)