com 0.2.0

Utilities for implementing COM Client and Servers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub trait Offset {
    const VALUE: usize;
}

macro_rules! declare_offset {
    ($($name:ident => $value:literal),*) => {
        $(
            pub struct $name;

            impl Offset for $name {
                const VALUE: usize = $value;
            }
        )*
    };
}

declare_offset!(Zero => 0, One => 1, Two => 2, Three => 3, Four => 4);