Expand description
Derive macros for flense.
This crate provides Adapter, a derive that generates the unsafe impl Adapter<...> blocks flense needs, with the byte offset filled in
correctly from offset_of!.
Use of this derive is never required; you could directly write these implementations yourself, but the derive lets you avoid explicitly writing the unsafe block and performs some safety checks.
Derive Macros§
- Adapter
- Derives
flense’sAdapterimplementations for the annotated fields of a struct.