shared_memory_derive 0.10.0

Support crate that provides macros for the shared_memory crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use shared_memory::SharedMemCast;

#[derive(SharedMemCast)]
pub struct MyStruct(u8);

#[derive(SharedMemCast)]
pub struct MyStruct2(u8, f64, i32, usize);

fn assert_impl<T: SharedMemCast>() {}
fn main() {
    assert_impl::<MyStruct>();
    assert_impl::<MyStruct2>();
}