Struct reaper_medium::OwnedReaperPitchShift
source · [−]#[repr(transparent)]pub struct OwnedReaperPitchShift(_);
Expand description
Owned REAPER pitch shift instance.
This one automatically destroys the associated C++ IReaperPitchShift
when dropped.
Implementations
sourceimpl OwnedReaperPitchShift
impl OwnedReaperPitchShift
sourcepub unsafe fn from_raw(raw: ReaperPitchShift) -> Self
pub unsafe fn from_raw(raw: ReaperPitchShift) -> Self
Takes ownership of the given pitch shift instance.
Safety
You must guarantee that the given instance is currently owner-less, otherwise double-free or use-after-free can occur.
Methods from Deref<Target = BorrowedReaperPitchShift>
sourcepub fn as_ptr(&self) -> ReaperPitchShift
pub fn as_ptr(&self) -> ReaperPitchShift
Returns the pointer to this pitch shift instance.
Trait Implementations
sourceimpl AsMut<BorrowedReaperPitchShift> for OwnedReaperPitchShift
impl AsMut<BorrowedReaperPitchShift> for OwnedReaperPitchShift
sourcefn as_mut(&mut self) -> &mut BorrowedReaperPitchShift
fn as_mut(&mut self) -> &mut BorrowedReaperPitchShift
Converts this type into a mutable reference of the (usually inferred) input type.
sourceimpl AsRef<BorrowedReaperPitchShift> for OwnedReaperPitchShift
impl AsRef<BorrowedReaperPitchShift> for OwnedReaperPitchShift
sourcefn as_ref(&self) -> &BorrowedReaperPitchShift
fn as_ref(&self) -> &BorrowedReaperPitchShift
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Debug for OwnedReaperPitchShift
impl Debug for OwnedReaperPitchShift
sourceimpl Deref for OwnedReaperPitchShift
impl Deref for OwnedReaperPitchShift
type Target = BorrowedReaperPitchShift
type Target = BorrowedReaperPitchShift
The resulting type after dereferencing.
sourceimpl DerefMut for OwnedReaperPitchShift
impl DerefMut for OwnedReaperPitchShift
sourceimpl Drop for OwnedReaperPitchShift
impl Drop for OwnedReaperPitchShift
sourceimpl Hash for OwnedReaperPitchShift
impl Hash for OwnedReaperPitchShift
sourceimpl PartialEq<OwnedReaperPitchShift> for OwnedReaperPitchShift
impl PartialEq<OwnedReaperPitchShift> for OwnedReaperPitchShift
sourcefn eq(&self, other: &OwnedReaperPitchShift) -> bool
fn eq(&self, other: &OwnedReaperPitchShift) -> bool
impl Eq for OwnedReaperPitchShift
impl Send for OwnedReaperPitchShift
impl StructuralEq for OwnedReaperPitchShift
impl StructuralPartialEq for OwnedReaperPitchShift
Auto Trait Implementations
impl RefUnwindSafe for OwnedReaperPitchShift
impl !Sync for OwnedReaperPitchShift
impl Unpin for OwnedReaperPitchShift
impl UnwindSafe for OwnedReaperPitchShift
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