Attribute Macro interoptopus_proc::ffi_type [−][src]
#[ffi_type]
Expand description
Enable a type (struct, enum) to appear in generated bindings.
This will derive CTypeInfo
based on the ‘visible’ information in the type definition.
Example
use interoptopus::ffi_type; #[ffi_type] #[derive(Copy, Clone, Debug)] #[repr(C)] pub struct Vec2f32 { pub x: f32, pub y: f32, pub z: f32, }