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

#245 in Rust patterns

Download history 10230/week @ 2024-10-09 11582/week @ 2024-10-16 10843/week @ 2024-10-23 11886/week @ 2024-10-30 9468/week @ 2024-11-06 2553/week @ 2024-11-13 2580/week @ 2024-11-20 2993/week @ 2024-11-27 2573/week @ 2024-12-04 3701/week @ 2024-12-11 3511/week @ 2024-12-18 1825/week @ 2024-12-25 2603/week @ 2025-01-01 2910/week @ 2025-01-08 5090/week @ 2025-01-15 3366/week @ 2025-01-22

14,439 downloads per month
Used in 54 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

~275–730KB
~17K SLoC