pub unsafe trait AsCData: Sized + 'static {
// Required method
fn ctypeid() -> CTypeID;
}
Expand description
AsCData 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§
Object Safety§
This trait is not object safe.