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

#278 in Rust patterns

Download history 2322/week @ 2024-11-15 2982/week @ 2024-11-22 2791/week @ 2024-11-29 2868/week @ 2024-12-06 3644/week @ 2024-12-13 3011/week @ 2024-12-20 1905/week @ 2024-12-27 2832/week @ 2025-01-03 4355/week @ 2025-01-10 4024/week @ 2025-01-17 2954/week @ 2025-01-24 3027/week @ 2025-01-31 4275/week @ 2025-02-07 2962/week @ 2025-02-14 3997/week @ 2025-02-21 2934/week @ 2025-02-28

14,789 downloads per month
Used in 55 crates (10 directly)

MIT/Apache

11KB
187 lines

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.


lib.rs:

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.

Dependencies

~260–710KB
~16K SLoC