pub enum ReaperPointer<'a> {
MediaTrack(MediaTrack),
ReaProject(ReaProject),
MediaItem(MediaItem),
MediaItemTake(MediaItemTake),
TrackEnvelope(TrackEnvelope),
PcmSource(NonNull<PCM_source>),
Custom {
type_name: Cow<'a, CStr>,
pointer: *mut c_void,
},
}Expand description
Validatable REAPER pointer.
Variants§
MediaTrack(MediaTrack)
ReaProject(ReaProject)
MediaItem(MediaItem)
MediaItemTake(MediaItemTake)
TrackEnvelope(TrackEnvelope)
PcmSource(NonNull<PCM_source>)
Custom
If a variant is missing in this enum, you can use this custom one as a resort.
Use custom() to create this variant.
Implementations§
Source§impl<'a> ReaperPointer<'a>
impl<'a> ReaperPointer<'a>
Trait Implementations§
Source§impl<'a> Clone for ReaperPointer<'a>
impl<'a> Clone for ReaperPointer<'a>
Source§fn clone(&self) -> ReaperPointer<'a>
fn clone(&self) -> ReaperPointer<'a>
Returns a duplicate 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<'a> Debug for ReaperPointer<'a>
impl<'a> Debug for ReaperPointer<'a>
Source§impl<'a> From<NonNull<MediaItem_Take>> for ReaperPointer<'a>
impl<'a> From<NonNull<MediaItem_Take>> for ReaperPointer<'a>
Source§fn from(p: MediaItemTake) -> Self
fn from(p: MediaItemTake) -> Self
Converts to this type from the input type.
Source§impl<'a> From<NonNull<MediaTrack>> for ReaperPointer<'a>
impl<'a> From<NonNull<MediaTrack>> for ReaperPointer<'a>
Source§fn from(p: MediaTrack) -> Self
fn from(p: MediaTrack) -> Self
Converts to this type from the input type.
Source§impl<'a> From<NonNull<PCM_source>> for ReaperPointer<'a>
impl<'a> From<NonNull<PCM_source>> for ReaperPointer<'a>
Source§fn from(p: NonNull<PCM_source>) -> Self
fn from(p: NonNull<PCM_source>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<NonNull<ReaProject>> for ReaperPointer<'a>
impl<'a> From<NonNull<ReaProject>> for ReaperPointer<'a>
Source§fn from(p: ReaProject) -> Self
fn from(p: ReaProject) -> Self
Converts to this type from the input type.
Source§impl<'a> From<NonNull<TrackEnvelope>> for ReaperPointer<'a>
impl<'a> From<NonNull<TrackEnvelope>> for ReaperPointer<'a>
Source§fn from(p: TrackEnvelope) -> Self
fn from(p: TrackEnvelope) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for ReaperPointer<'a>
impl<'a> Hash for ReaperPointer<'a>
Source§impl<'a> PartialEq for ReaperPointer<'a>
impl<'a> PartialEq for ReaperPointer<'a>
impl<'a> Eq for ReaperPointer<'a>
impl<'a> StructuralPartialEq for ReaperPointer<'a>
Auto Trait Implementations§
impl<'a> Freeze for ReaperPointer<'a>
impl<'a> RefUnwindSafe for ReaperPointer<'a>
impl<'a> !Send for ReaperPointer<'a>
impl<'a> !Sync for ReaperPointer<'a>
impl<'a> Unpin for ReaperPointer<'a>
impl<'a> UnwindSafe for ReaperPointer<'a>
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