mem_macros 1.0.1

align_of and size_of as a macro, to avoid turbofish notation
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented2 out of 3 items with examples
  • Size
  • Source code size: 18.68 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 206.25 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • xfix

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));