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

#237 in Rust patterns

Download history 9442/week @ 2024-08-22 8247/week @ 2024-08-29 10184/week @ 2024-09-05 10227/week @ 2024-09-12 11382/week @ 2024-09-19 12064/week @ 2024-09-26 12514/week @ 2024-10-03 10186/week @ 2024-10-10 12047/week @ 2024-10-17 10530/week @ 2024-10-24 12544/week @ 2024-10-31 7516/week @ 2024-11-07 2334/week @ 2024-11-14 2739/week @ 2024-11-21 2989/week @ 2024-11-28 2289/week @ 2024-12-05

10,810 downloads per month
Used in 52 crates (11 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

~270–720KB
~17K SLoC