pub unsafe trait TransparentPtrType:
Clone
+ Sized
+ GlibPtrDefault { }
Expand description
Trait for types that have the same memory representation as a pointer to their FFI type.
Values of types implementing this trait can be transmuted to pointers of the FFI type, references to pointers of pointers to the FFI type.
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.