pub struct CommandId(/* private fields */);
Expand description
A command ID.
This uniquely identifies a command1 within a certain section
. For built-in actions
this command ID is completely stable. For actions added by extensions it should be assumed that
the command ID is valid only within one REAPER session.
This is not to be confused with the command index (the position in the action list) and the command name (a globally unique string identifier for commands added by extensions which is stable even across different REAPER sessions).
A command is a function that will be executed when a particular action is requested to be run. ↩
Implementations§
Source§impl CommandId
impl CommandId
Sourcepub fn new(value: u32) -> CommandId
pub fn new(value: u32) -> CommandId
Creates a command ID.
§Panics
This function panics if the given value is 0 (which is not a valid command ID).
Sourcepub const unsafe fn new_unchecked(value: u32) -> CommandId
pub const unsafe fn new_unchecked(value: u32) -> CommandId
Creates a command ID without bound checking.
§Safety
You must ensure that the given value is greater than 0.