pub fn plugin_register_add_command_id<'a>(
        &mut self,
        command_name: impl Into<ReaperStringArg<'a>>,
    ) -> ReaperFunctionResult<CommandId> {
        let owned = command_name.into().into_inner().to_reaper_string();
        let ptr = owned.as_ptr();
        self.command_names.insert(owned);
        let raw_id = unsafe { self.plugin_register_add(RegistrationObject::CommandId(ptr))? };
        Ok(CommandId(raw_id as _))
    }
/// Registers a command ID for the given command name.
///
/// The given command name must be a unique identifier with only A-Z and 0-9.
///
/// Returns the assigned command ID, an ID which is guaranteed to be unique within the current
/// REAPER session. If the command name is already in use, it just seems to return the ID
/// which has been assigned before.
///
/// # Errors
///
/// Returns an error if the registration failed (e.g. because not supported or out of actions).
//
// TODO-low Add function for removing command ID
Registers a command ID for the given command name.
The given command name must be a unique identifier with only A-Z and 0-9.

Returns the assigned command ID, an ID which is guaranteed to be unique within the current
REAPER session. If the command name is already in use, it just seems to return the ID
which has been assigned before.
Registers a command ID for the given command name . The given command name must be a unique identifier with only A - Z and 0 - 9 . Returns the assigned command ID an ID which is guaranteed to be unique within the current REAPER session . If the command name is already in use it just seems to return the ID which has been assigned before .
pub fn plugin_register_add_command_id<'a>(
        &mut self,
        command_name: impl Into<ReaperStringArg<'a>>,
    ) -> ReaperFunctionResult<CommandId> {
        let owned = command_name.into().into_inner().to_reaper_string();
        let ptr = owned.as_ptr();
        self.command_names.insert(owned);
        let raw_id = unsafe { self.plugin_register_add(RegistrationObject::CommandId(ptr))? };
        Ok(CommandId(raw_id as _))
    }
pub fn plugin_register_add_command_id < ' a > ( & mut self , command_name : impl Into < ReaperStringArg < ' a > > , ) -> ReaperFunctionResult < CommandId > { let owned = command_name . into ( ) . into_inner ( ) . to_reaper_string ( ) ; let ptr = owned . as_ptr ( ) ; self . command_names . insert ( owned ) ; let raw_id = unsafe { self . plugin_register_add ( RegistrationObject :: CommandId ( ptr ) ) ? } ; Ok ( CommandId ( raw_id as _ ) ) }
Registers a command ID for the given command name.
Registers a command ID for the given command name .
&mut self
command_name
impl Into<ReaperStringArg<'a>>
&mut self
command_name
impl Into<ReaperStringArg<'a>>
errors
Returns an error if the registration failed .


Returns an error if the registration failed .