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§
Sourcefn acquire<T>(_ptr: *mut T)where
T: BSIntrusiveRefCountedTrait,
fn acquire<T>(_ptr: *mut T)where
T: BSIntrusiveRefCountedTrait,
No-op for acquire.
Sourceunsafe fn release<T>(ptr: *mut T)where
T: BSIntrusiveRefCountedTrait,
unsafe fn release<T>(ptr: *mut T)where
T: BSIntrusiveRefCountedTrait,
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.