pub trait CReprOf<T>: Sized + CDrop {
// Required method
fn c_repr_of(input: T) -> Result<Self, CReprOfError>;
}Expand description
Trait showing that the struct implementing it is a repr(C) compatible view of the parametrized
type that can be created from an value of this type.
Required Methods§
fn c_repr_of(input: T) -> Result<Self, CReprOfError>
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.