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

#252 in Rust patterns

Download history 2050/week @ 2024-01-22 1941/week @ 2024-01-29 1720/week @ 2024-02-05 2583/week @ 2024-02-12 3779/week @ 2024-02-19 2663/week @ 2024-02-26 2203/week @ 2024-03-04 2591/week @ 2024-03-11 2938/week @ 2024-03-18 2742/week @ 2024-03-25 2399/week @ 2024-04-01 2106/week @ 2024-04-08 2575/week @ 2024-04-15 2357/week @ 2024-04-22 2323/week @ 2024-04-29 2188/week @ 2024-05-06

9,670 downloads per month
Used in 44 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