[][src]Enum reaper_medium::ReaperPointer

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,
    },
}

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.

Fields of Custom

type_name: Cow<'a, CStr>pointer: *mut c_void

Implementations

impl<'a> ReaperPointer<'a>[src]

pub fn custom(
    pointer: *mut c_void,
    type_name: impl Into<ReaperStringArg<'a>>
) -> Self
[src]

Convenience function for creating a Custom pointer.

Don't include the trailing asterisk (*)! It will be added automatically.

Trait Implementations

impl<'a> Clone for ReaperPointer<'a>[src]

impl<'a> Debug for ReaperPointer<'a>[src]

impl<'a> Eq for ReaperPointer<'a>[src]

impl<'a> From<NonNull<MediaItem>> for ReaperPointer<'a>[src]

impl<'a> From<NonNull<MediaItem_Take>> for ReaperPointer<'a>[src]

impl<'a> From<NonNull<MediaTrack>> for ReaperPointer<'a>[src]

impl<'a> From<NonNull<PCM_source>> for ReaperPointer<'a>[src]

impl<'a> From<NonNull<ReaProject>> for ReaperPointer<'a>[src]

impl<'a> From<NonNull<TrackEnvelope>> for ReaperPointer<'a>[src]

impl<'a> Hash for ReaperPointer<'a>[src]

impl<'a> PartialEq<ReaperPointer<'a>> for ReaperPointer<'a>[src]

impl<'a> StructuralEq for ReaperPointer<'a>[src]

impl<'a> StructuralPartialEq for ReaperPointer<'a>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.