Skip to main content

IsOpaqueRefCounted

Trait IsOpaqueRefCounted 

Source
pub unsafe trait IsOpaqueRefCounted: Deref + Sized {
    type TargetBase: HasRefCount + Recyclable;
}
Expand description

Trait for facade types that wrap an OpaqueRefCountedFacade<B> and derefer to B.

Implementing this trait automatically provides HasRefCount and Recyclable for Self.

§Safety

Self must be a facade struct for a C++ object that inherits from TargetBase and derefers to TargetBase.

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§