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
CDropand (by default)Dropfor a struct or unit enum. - CReprOf
- Derive
CReprOf<T>for a struct or unit enum. - RawPointer
Converter - Derive
RawPointerConverter<Self>for a struct.