Enum reaper_medium::ReaperPointer
source · [−]pub enum ReaperPointer<'a> {
MediaTrack(MediaTrack),
ReaProject(ReaProject),
MediaItem(MediaItem),
MediaItemTake(MediaItemTake),
TrackEnvelope(TrackEnvelope),
PcmSource(PcmSource),
AudioAccessor(AudioAccessor),
Custom {
type_name: Cow<'a, ReaperStr>,
pointer: *mut c_void,
},
}
Expand description
Validatable REAPER pointer.
Variants
MediaTrack(MediaTrack)
ReaProject(ReaProject)
MediaItem(MediaItem)
MediaItemTake(MediaItemTake)
TrackEnvelope(TrackEnvelope)
PcmSource(PcmSource)
AudioAccessor(AudioAccessor)
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
sourceimpl<'a> ReaperPointer<'a>
impl<'a> ReaperPointer<'a>
sourcepub fn custom(
pointer: *mut c_void,
type_name: impl Into<ReaperStringArg<'a>>
) -> ReaperPointer<'a>
pub fn custom(
pointer: *mut c_void,
type_name: impl Into<ReaperStringArg<'a>>
) -> ReaperPointer<'a>
Convenience function for creating a Custom
pointer.
Don’t include the trailing asterisk (*
)! It will be added automatically.
Trait Implementations
sourceimpl<'a> Clone for ReaperPointer<'a>
impl<'a> Clone for ReaperPointer<'a>
sourcefn clone(&self) -> ReaperPointer<'a>
fn clone(&self) -> ReaperPointer<'a>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for ReaperPointer<'a>
impl<'a> Debug for ReaperPointer<'a>
sourceimpl<'a> From<NonNull<AudioAccessor>> for ReaperPointer<'a>
impl<'a> From<NonNull<AudioAccessor>> for ReaperPointer<'a>
sourcefn from(p: AudioAccessor) -> Self
fn from(p: AudioAccessor) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<NonNull<MediaItem>> for ReaperPointer<'a>
impl<'a> From<NonNull<MediaItem>> for ReaperPointer<'a>
sourceimpl<'a> From<NonNull<MediaItem_Take>> for ReaperPointer<'a>
impl<'a> From<NonNull<MediaItem_Take>> for ReaperPointer<'a>
sourcefn from(p: MediaItemTake) -> Self
fn from(p: MediaItemTake) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<NonNull<MediaTrack>> for ReaperPointer<'a>
impl<'a> From<NonNull<MediaTrack>> for ReaperPointer<'a>
sourcefn from(p: MediaTrack) -> Self
fn from(p: MediaTrack) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<NonNull<PCM_source>> for ReaperPointer<'a>
impl<'a> From<NonNull<PCM_source>> for ReaperPointer<'a>
sourceimpl<'a> From<NonNull<ReaProject>> for ReaperPointer<'a>
impl<'a> From<NonNull<ReaProject>> for ReaperPointer<'a>
sourcefn from(p: ReaProject) -> Self
fn from(p: ReaProject) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<NonNull<TrackEnvelope>> for ReaperPointer<'a>
impl<'a> From<NonNull<TrackEnvelope>> for ReaperPointer<'a>
sourcefn from(p: TrackEnvelope) -> Self
fn from(p: TrackEnvelope) -> Self
Converts to this type from the input type.
sourceimpl<'a> Hash for ReaperPointer<'a>
impl<'a> Hash for ReaperPointer<'a>
sourceimpl<'a> PartialEq<ReaperPointer<'a>> for ReaperPointer<'a>
impl<'a> PartialEq<ReaperPointer<'a>> for ReaperPointer<'a>
sourcefn eq(&self, other: &ReaperPointer<'a>) -> bool
fn eq(&self, other: &ReaperPointer<'a>) -> bool
impl<'a> Eq for ReaperPointer<'a>
impl<'a> StructuralEq for ReaperPointer<'a>
impl<'a> StructuralPartialEq for ReaperPointer<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read moresourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more