1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//! This module shows an example of code generated by the macro.
//! **IT MUST NOT BE USED OUTSIDE THIS CRATE.**

use std::string::String;

multi_structs! {
    /// This is the same `Merged` struct defined in
    /// the [crate level example](../index.html#example).
    #[derive(Debug)]
    pub struct Merged {
        /// Foo
        #[derive(Debug)]
        pub foo: struct Foo {
            /// a
            a: i32,
            /// b
            b: i64,
        }
        /// Bar
        #[derive(Debug)]
        pub bar: struct Bar {
            /// c
            c: usize,
            /// d
            d: String,
        }
    }
}