RefTarget

Trait RefTarget 

Source
pub unsafe trait RefTarget {
    // Required methods
    unsafe fn add_ref(value: *const Self);
    unsafe fn release(value: *const Self);
}
Expand description

Rust version of Jolt’s RefTarget CRTP.

§Safety

The value pointers provided must be live. This trait should only be implemented for C++ types that inherit from RefTarget<Self>.

Required Methods§

Source

unsafe fn add_ref(value: *const Self)

Source

unsafe fn release(value: *const Self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RefTarget for JPC_Shape

Source§

unsafe fn add_ref(value: *const Self)

Source§

unsafe fn release(value: *const Self)

Implementors§