[−][src]Struct reaper_medium::CommandId
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
impl CommandId
[src]
pub fn new(value: u32) -> CommandId
[src]
Creates a command ID.
Panics
This function panics if the given value is 0 (which is not a valid command ID).
pub const unsafe fn new_unchecked(value: u32) -> CommandId
[src]
Creates a command ID without bound checking.
Safety
You must ensure that the given value is greater than 0.
pub const fn get(&self) -> u32
[src]
Returns the wrapped value.
pub fn to_raw(&self) -> i32
[src]
Converts this value to an integer as expected by the low-level API.
Trait Implementations
impl Clone for CommandId
[src]
impl Copy for CommandId
[src]
impl Debug for CommandId
[src]
impl Default for CommandId
[src]
impl Display for CommandId
[src]
impl Eq for CommandId
[src]
impl Hash for CommandId
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for CommandId
[src]
fn cmp(&self, other: &CommandId) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<CommandId> for CommandId
[src]
impl PartialOrd<CommandId> for CommandId
[src]
fn partial_cmp(&self, other: &CommandId) -> Option<Ordering>
[src]
fn lt(&self, other: &CommandId) -> bool
[src]
fn le(&self, other: &CommandId) -> bool
[src]
fn gt(&self, other: &CommandId) -> bool
[src]
fn ge(&self, other: &CommandId) -> bool
[src]
impl StructuralEq for CommandId
[src]
impl StructuralPartialEq for CommandId
[src]
Auto Trait Implementations
impl RefUnwindSafe for CommandId
impl Send for CommandId
impl Sync for CommandId
impl Unpin for CommandId
impl UnwindSafe for CommandId
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,