mem_macros

Crates.iomem_macros
lib.rsmem_macros
version1.0.1
sourcesrc
created_at2018-05-23 13:52:22.013105
updated_at2022-01-27 13:14:18.978184
descriptionalign_of and size_of as a macro, to avoid turbofish notation
homepage
repositoryhttps://gitlab.com/KonradBorowski/mem_macros
max_upload_size
id66769
size18,997
Kamila Borowska (xfix)

documentation

https://docs.rs/mem_macros

README

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));
Commit count: 21

cargo fmt