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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
use TokenStream;
///
/// Derive macro generating an `impl` of trait [`Cast`] for a `struct`
/// type or a `union` type.
///
/// It must be applied together with attribute `#[`[`repr(C)`]`]`.
///
/// For detailed information, see the document of trait [`Cast`].
///
/// [`Cast`]: https://docs.rs/castflip/0.1/castflip/trait.Cast.html
/// [`repr(C)`]: https://doc.rust-lang.org/reference/type-layout.html#the-c-representation
///
///
/// Derive macro generating an `impl` of trait [`Flip`] for a `struct`
/// type.
///
/// For detailed information, see the document of trait [`Flip`].
///
/// [`Flip`]: https://docs.rs/castflip/0.1/castflip/trait.Flip.html
///
///
/// Derive macro generating `impl`s of both trait [`Flip`] whose
/// methods do nothing and trait [`NopFlip`] for a `struct` type or a
/// `union` type.
///
/// For detailed information, see the document of trait [`NopFlip`].
///
/// [`NopFlip`]: https://docs.rs/castflip/0.1/castflip/trait.NopFlip.html
///