pub unsafe trait AsCData: Sized + 'static {
// Required method
fn ctypeid() -> CTypeID;
}
Expand description
Types implementing this trait can be represented as luajit’s cdata.
§Safety
The implementor must make sure that the type can actually be used as cdata,
for example the CTypeID must be correct and the size of the type must be the
same as ffi.sizeof(<typeid>)
Required 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.