Trait deno_libffi::high::types::CType[][src]

pub unsafe trait CType: Copy {
    fn reify() -> Type<Self>;
}
Expand description

Types that we can automatically marshall to/from C.

In particular, for any type T that implements CType, we can get a Type<T> for describing that type. This trait is unsafe to implement because if the libffi type associated with a Rust type doesn’t match then we get undefined behavior.

Required methods

Creates or retrieves a Type<T> for any type T: CType.

We can use the resulting object to assemble a CIF to set up a call that uses type T.

Implementations on Foreign Types

Implementors