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

#291 in Rust patterns

Download history 1124/week @ 2023-12-23 1257/week @ 2023-12-30 2376/week @ 2024-01-06 2356/week @ 2024-01-13 1933/week @ 2024-01-20 2121/week @ 2024-01-27 1607/week @ 2024-02-03 2193/week @ 2024-02-10 3997/week @ 2024-02-17 2811/week @ 2024-02-24 2173/week @ 2024-03-02 2568/week @ 2024-03-09 2777/week @ 2024-03-16 2879/week @ 2024-03-23 2429/week @ 2024-03-30 1929/week @ 2024-04-06

10,357 downloads per month
Used in 39 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.4–0.8MB
~19K SLoC