pub enum ProjectContext {
CurrentProject,
Proj(ReaProject),
}
Expand description
Determines the project in which a function should be executed.
Variants§
CurrentProject
Project in the currently open tab.
Proj(ReaProject)
A particular project, not necessarily the one in the currently open tab.
Implementations§
Source§impl ProjectContext
impl ProjectContext
Sourcepub fn to_raw(&self) -> *mut ReaProject
pub fn to_raw(&self) -> *mut ReaProject
Converts this value to a raw pointer as expected by the low-level API.
Trait Implementations§
Source§impl Clone for ProjectContext
impl Clone for ProjectContext
Source§fn clone(&self) -> ProjectContext
fn clone(&self) -> ProjectContext
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProjectContext
impl Debug for ProjectContext
Source§impl Hash for ProjectContext
impl Hash for ProjectContext
Source§impl PartialEq for ProjectContext
impl PartialEq for ProjectContext
impl Copy for ProjectContext
impl Eq for ProjectContext
impl StructuralPartialEq for ProjectContext
Auto Trait Implementations§
impl Freeze for ProjectContext
impl RefUnwindSafe for ProjectContext
impl !Send for ProjectContext
impl !Sync for ProjectContext
impl Unpin for ProjectContext
impl UnwindSafe for ProjectContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more