20#ifndef LIBREPCB_CORE_RUSTHANDLE_H
21#define LIBREPCB_CORE_RUSTHANDLE_H
Definition occmodel.cpp:76
Scoped pointer for Rust objects.
Definition rusthandle.h:41
void(* Deleter)(T *)
Definition rusthandle.h:42
T * operator*() noexcept
Definition rusthandle.h:62
RustHandle(RustHandle &&other) noexcept
Definition rusthandle.h:50
RustHandle & operator=(const RustHandle &rhs)=delete
Deleter mDeleter
Definition rusthandle.h:68
RustHandle(const RustHandle &other)=delete
T * mObj
Definition rusthandle.h:67
RustHandle(T &obj, Deleter deleter) noexcept
Definition rusthandle.h:48
const T * operator*() const noexcept
Definition rusthandle.h:58
~RustHandle() noexcept
Definition rusthandle.h:54