Struct reaper_medium::OwnedReaperResample
source · [−]#[repr(transparent)]pub struct OwnedReaperResample(_);
Expand description
Owned REAPER resample instance.
This one automatically destroys the associated C++ REAPER_Resample_Interface
when dropped.
Implementations
sourceimpl OwnedReaperResample
impl OwnedReaperResample
sourcepub unsafe fn from_raw(raw: ReaperResample) -> Self
pub unsafe fn from_raw(raw: ReaperResample) -> Self
Takes ownership of the given resample 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 = BorrowedReaperResample>
sourcepub fn as_ptr(&self) -> ReaperResample
pub fn as_ptr(&self) -> ReaperResample
Returns the pointer to this resample instance.
Trait Implementations
sourceimpl AsMut<BorrowedReaperResample> for OwnedReaperResample
impl AsMut<BorrowedReaperResample> for OwnedReaperResample
sourcefn as_mut(&mut self) -> &mut BorrowedReaperResample
fn as_mut(&mut self) -> &mut BorrowedReaperResample
Converts this type into a mutable reference of the (usually inferred) input type.
sourceimpl AsRef<BorrowedReaperResample> for OwnedReaperResample
impl AsRef<BorrowedReaperResample> for OwnedReaperResample
sourcefn as_ref(&self) -> &BorrowedReaperResample
fn as_ref(&self) -> &BorrowedReaperResample
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Debug for OwnedReaperResample
impl Debug for OwnedReaperResample
sourceimpl Deref for OwnedReaperResample
impl Deref for OwnedReaperResample
type Target = BorrowedReaperResample
type Target = BorrowedReaperResample
The resulting type after dereferencing.
sourceimpl DerefMut for OwnedReaperResample
impl DerefMut for OwnedReaperResample
sourceimpl Drop for OwnedReaperResample
impl Drop for OwnedReaperResample
sourceimpl Hash for OwnedReaperResample
impl Hash for OwnedReaperResample
sourceimpl PartialEq<OwnedReaperResample> for OwnedReaperResample
impl PartialEq<OwnedReaperResample> for OwnedReaperResample
sourcefn eq(&self, other: &OwnedReaperResample) -> bool
fn eq(&self, other: &OwnedReaperResample) -> bool
impl Eq for OwnedReaperResample
impl Send for OwnedReaperResample
impl StructuralEq for OwnedReaperResample
impl StructuralPartialEq for OwnedReaperResample
Auto Trait Implementations
impl RefUnwindSafe for OwnedReaperResample
impl !Sync for OwnedReaperResample
impl Unpin for OwnedReaperResample
impl UnwindSafe for OwnedReaperResample
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