Trait RefCounted
pub unsafe trait RefCounted:
Sized
+ Clone
+ 'static {
type InnerType;
// Required methods
unsafe fn ref_(this: *const Self::InnerType) -> *const Self::InnerType;
fn as_ptr(&self) -> *const Self::InnerType;
fn into_raw(self) -> *const Self::InnerType;
unsafe fn from_raw(this: *const Self::InnerType) -> Self;
}Required Associated Types§
type InnerType
type InnerType
The inner type
Required Methods§
unsafe fn ref_(this: *const Self::InnerType) -> *const Self::InnerType
unsafe fn ref_(this: *const Self::InnerType) -> *const Self::InnerType
The function used to increment the inner type refcount
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.