Crates.io | mem_macros |
lib.rs | mem_macros |
version | 1.0.1 |
source | src |
created_at | 2018-05-23 13:52:22.013105 |
updated_at | 2022-01-27 13:14:18.978184 |
description | align_of and size_of as a macro, to avoid turbofish notation |
homepage | |
repository | https://gitlab.com/KonradBorowski/mem_macros |
max_upload_size | |
id | 66769 |
size | 18,997 |
mem_macros
std::mem::size_of
and std::mem::align_of
as a macro, to avoid turbofish notation.
#[macro_use]
extern crate mem_macros;
assert_eq!(1, size_of!(u8));