Public Member Functions | |
| auto | into_raw () -> *mut T |
| Releases ownership. The caller must destroy the object. | |
| auto | as_ptr () const -> *const T |
| auto | as_mut_ptr () -> *mut T |
Static Public Member Functions | |
| static auto | from_raw (ptr:*mut T) -> Self |
An owning handle to a heap-allocated C++ object. Destroys the object when dropped. Dereferences to the class itself, which holds all the methods.
T: CppClass
| auto meshlib::Owned< T >::as_mut_ptr | ( | ) | -> *mut T |
| auto meshlib::Owned< T >::as_ptr | ( | ) | const -> *const T |
|
static |
Takes ownership of a pointer returned by the C bindings. The pointer must not be null.
| auto meshlib::Owned< T >::into_raw | ( | ) | -> *mut T |
Releases ownership. The caller must destroy the object.