#notation #mem #macro #turbofish #no-std #align-of #size-of

deprecated no-std mem_macros

align_of and size_of as a macro, to avoid turbofish notation

5 releases (2 stable)

Uses old Rust 2015

1.0.1 Jan 27, 2022
1.0.0 Jun 5, 2018
0.1.2 Jun 5, 2018
0.1.1 Jun 4, 2018
0.1.0 May 23, 2018

#23 in #mem

Download history 61/week @ 2023-11-26 19/week @ 2023-12-03 10/week @ 2023-12-10 29/week @ 2023-12-17 10/week @ 2024-01-07 1/week @ 2024-01-14 7/week @ 2024-01-21 12/week @ 2024-01-28 1/week @ 2024-02-04 15/week @ 2024-02-11 22/week @ 2024-02-18 32/week @ 2024-02-25 17/week @ 2024-03-03 28/week @ 2024-03-10

101 downloads per month
Used in 3 crates (2 directly)

MIT/Apache

8KB

mem_macros

std::mem::size_of and std::mem::align_of as a macro, to avoid turbofish notation.

Examples

#[macro_use]
extern crate mem_macros;
assert_eq!(1, size_of!(u8));

lib.rs:

align_of and size_of as a macro, to avoid turbofish notation

No runtime deps