Trait ManageBSTSmartPointer

Source
pub trait ManageBSTSmartPointer {
    // Provided methods
    fn acquire<T>(_ptr: *mut T)
       where T: BSIntrusiveRefCountedTrait { ... }
    unsafe fn release<T>(ptr: *mut T)
       where T: BSIntrusiveRefCountedTrait { ... }
}
Expand description

Trait for managing smart pointer lifetimes.

Provided Methods§

Source

fn acquire<T>(_ptr: *mut T)

No-op for acquire.

Source

unsafe fn release<T>(ptr: *mut T)

Releases the object held by the smart pointer.

§Safety

The pointer must be valid and allocated by TESBox.

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.

Implementors§