Struct gdnative_core::FreeOnDrop[][src]

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

A wrapper that automatically frees the object when dropped.

Methods

impl<T> FreeOnDrop<T> where
    T: Free + Clone
[src]

Trait Implementations

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

Executes the destructor for this type. Read more

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

The resulting type after dereferencing.

Important traits for &'a mut R

Dereferences the value.

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

Important traits for &'a mut R

Mutably dereferences the value.

Auto Trait Implementations

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

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