sav 0.2.0

skylar alexandra's vectors
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use sav::A;

use std::borrow::Cow;

macro_rules! Zof {
    [$($t:ty),* $(,)*] => {{
        [
            $((stringify!($t), std::mem::size_of::<$t>()*8)),*
        ]
    }};
}

fn main() {
    for (n, z) in Zof![A::A<u64>, Cow<[u64]>] {
        println!("{n}:\t{z}bit");
    }
}