pub trait FFIConversionTo<T> {
// Required method
unsafe fn ffi_to_const(obj: T) -> *const Self;
// Provided methods
unsafe fn ffi_to(obj: T) -> *mut Self { ... }
unsafe fn ffi_to_opt(obj: Option<T>) -> *mut Self
where Self: Sized { ... }
}Required Methods§
Sourceunsafe fn ffi_to_const(obj: T) -> *const Self
unsafe fn ffi_to_const(obj: T) -> *const Self
§Safety
Provided Methods§
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.