daft-derive 0.1.8

Derive macro for daft
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Check that no-std works.
#![no_std]

use daft::Diffable;

#[derive(Debug, Eq, PartialEq, Diffable)]
struct StructWithGenerics<'d, 'e, T, U>
where
    T: daft::Diffable + 'd + ?Sized,
    U: daft::Diffable + 'e + ?Sized,
{
    b: usize,
    c: &'d T,
    d: &'e U,
}

fn main() {}