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

#229 in Rust patterns

Download history 7808/week @ 2024-07-23 7354/week @ 2024-07-30 7964/week @ 2024-08-06 8988/week @ 2024-08-13 9379/week @ 2024-08-20 7916/week @ 2024-08-27 10317/week @ 2024-09-03 9536/week @ 2024-09-10 11512/week @ 2024-09-17 11541/week @ 2024-09-24 13485/week @ 2024-10-01 10107/week @ 2024-10-08 10464/week @ 2024-10-15 11966/week @ 2024-10-22 10998/week @ 2024-10-29 11894/week @ 2024-11-05

47,116 downloads per month
Used in 51 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

~280–730KB
~17K SLoC