#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

#33 in #mem

Download history 15/week @ 2024-07-22 108/week @ 2024-07-29 25/week @ 2024-08-05 7/week @ 2024-08-12 15/week @ 2024-08-19 28/week @ 2024-08-26 23/week @ 2024-09-02 16/week @ 2024-09-09 8/week @ 2024-09-16 63/week @ 2024-09-23 22/week @ 2024-09-30 25/week @ 2024-10-07 18/week @ 2024-10-14 22/week @ 2024-10-21 11/week @ 2024-10-28 12/week @ 2024-11-04

64 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