size-of-trait-impl

Tiny little crate to determine how large an unnameable type is.

What does it look like?

```rust use sizeoftrait::size_of;

const A: usize = sizeof!(f()); const B: usize = sizeof!(0_u8);

fn main() { asserteq!(A, 2); asserteq!(B, 1); }

async fn f() { let x = 1; std::future::ready(()).await; let y = 2; } ```

Why not use std::mem::size_of_val?

```rust,compile_fail,E0015,E0493

![feature(constsizeof_val)]

async fn foo() {} // error: cannont call non-const fn foo in constants const SIZE: usize = std::mem::sizeofval(&foo()); // error: constants cannot evaluate destructors ```

size_of! does not evaluate its arguments at all, and can be used in a const context.

MSRV

1.54 (for doc = include_str!). This can be easily lowered to 1.31 (for const fn) if someone finds it useful.