Struct gdnative_visual_script::common::FreeOnDrop[]

pub struct FreeOnDrop<T> where
    T: Free + Clone
{ /* fields omitted */ }

A wrapper that automatically frees the object when dropped.

Methods

impl<T> FreeOnDrop<T> where
    T: Free + Clone

Trait Implementations

impl<T> DerefMut for FreeOnDrop<T> where
    T: Free + Clone

Important traits for &'a mut R

Mutably dereferences the value.

impl<T> Deref for FreeOnDrop<T> where
    T: Free + Clone

The resulting type after dereferencing.

Important traits for &'a mut R

Dereferences the value.

impl<T> Drop for FreeOnDrop<T> where
    T: Free + Clone

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<T> Send for FreeOnDrop<T> where
    T: Send

impl<T> Sync for FreeOnDrop<T> where
    T: Sync