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 |
#33 in #mem
64 downloads per month
Used in 4 crates
(via razy-importer)
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