#notation #mem #macro #turbofish #no-std #size-of #align-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

#35 in #mem

Download history 12/week @ 2024-10-29 27/week @ 2024-11-05 12/week @ 2024-11-12 11/week @ 2024-11-19 17/week @ 2024-11-26 11/week @ 2024-12-03 37/week @ 2024-12-10 13/week @ 2024-12-17 3/week @ 2024-12-31 2/week @ 2025-01-07 33/week @ 2025-01-14 23/week @ 2025-01-21 4/week @ 2025-01-28 15/week @ 2025-02-04 30/week @ 2025-02-11

80 downloads per month
Used in 4 crates (via razy-importer)

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