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 2287/week @ 2024-04-04 2328/week @ 2024-04-11 2424/week @ 2024-04-18 2424/week @ 2024-04-25 2288/week @ 2024-05-02 2120/week @ 2024-05-09 2460/week @ 2024-05-16 2234/week @ 2024-05-23 2960/week @ 2024-05-30 10528/week @ 2024-06-06 19605/week @ 2024-06-13 17498/week @ 2024-06-20 17777/week @ 2024-06-27 8454/week @ 2024-07-04 8374/week @ 2024-07-11 5745/week @ 2024-07-18

43,585 downloads per month
Used in 45 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

~0.3–0.8MB
~19K SLoC