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

#910 in Rust patterns

Download history 5385/week @ 2025-10-08 7309/week @ 2025-10-15 5770/week @ 2025-10-22 5619/week @ 2025-10-29 5670/week @ 2025-11-05 5974/week @ 2025-11-12 5478/week @ 2025-11-19 6063/week @ 2025-11-26 6526/week @ 2025-12-03 5786/week @ 2025-12-10 5899/week @ 2025-12-17 6520/week @ 2025-12-24 6449/week @ 2025-12-31 5184/week @ 2026-01-07 6975/week @ 2026-01-14 7008/week @ 2026-01-21

26,563 downloads per month
Used in 78 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

~190–600KB
~14K SLoC