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

#250 in Rust patterns

Download history 2060/week @ 2024-01-18 1941/week @ 2024-01-25 1810/week @ 2024-02-01 1996/week @ 2024-02-08 3649/week @ 2024-02-15 3148/week @ 2024-02-22 2193/week @ 2024-02-29 2290/week @ 2024-03-07 2940/week @ 2024-03-14 2965/week @ 2024-03-21 2454/week @ 2024-03-28 2287/week @ 2024-04-04 2328/week @ 2024-04-11 2424/week @ 2024-04-18 2424/week @ 2024-04-25 1893/week @ 2024-05-02

9,367 downloads per month
Used in 42 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