Skip to main content

Crate ffi_convert_derive

Crate ffi_convert_derive 

Source
Expand description

Derive macros for the conversion traits provided by the ffi-convert crate.

The four derives are also re-exported from ffi-convert, so users of ffi-convert typically do not need to depend on this crate directly.

See the top-level ffi-convert documentation for the overall design, the type-mapping table, and the caveats that apply to all four derives. The per-macro documentation below lists the supported helper attributes.

Derive Macrosยง

AsRust
Derive AsRust<T> for a struct or unit enum.
CDrop
Derive CDrop and (by default) Drop for a struct or unit enum.
CReprOf
Derive CReprOf<T> for a struct or unit enum.
RawPointerConverter
Derive RawPointerConverter<Self> for a struct.