6 releases

0.1.5 Mar 14, 2024
0.1.4 Feb 20, 2024
0.1.3 Apr 3, 2023
0.1.2 Nov 24, 2021
0.1.0 Aug 26, 2020

#311 in Rust patterns

Download history 3666/week @ 2024-12-17 1914/week @ 2024-12-24 2599/week @ 2024-12-31 3054/week @ 2025-01-07 4776/week @ 2025-01-14 3550/week @ 2025-01-21 2645/week @ 2025-01-28 4009/week @ 2025-02-04 3605/week @ 2025-02-11 2992/week @ 2025-02-18 4325/week @ 2025-02-25 2522/week @ 2025-03-04 5015/week @ 2025-03-11 3601/week @ 2025-03-18 3527/week @ 2025-03-25 2591/week @ 2025-04-01

15,116 downloads per month
Used in 55 crates (10 directly)

MIT/Apache

11KB
187 lines

This crate expose the FieldOffsets derive macro and the types it uses.

The macro allows to get const FieldOffset for member of a #[repr(C)] struct.

The FieldOffset type is re-exported from the field-offset crate.


const-field-offset crate

Crates.io Docs.rs

This crate expose the FieldOffsets derive macro and the types it uses

Check the crate documentation for more details.

Dependencies

~250–700KB
~16K SLoC