Module structs

Source

Structsยง

OpaqueStruct
A struct annotated with [diplomat::opaque] whose fields are not visible. Opaque structs cannot be passed by-value across the FFI boundary, so they must be boxed or passed as references.
Struct
A struct declaration in an FFI module that is not opaque.