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
//! # Test Matrix for `DerefMut` Derive
//!
//! This matrix documents test cases for the `DerefMut` derive macro.
//!
//! | ID | Struct Type | Field Type | Expected Behavior |
//! |------|-------------------|------------|-------------------------------------------------|
//! | T1.1 | `IsTransparentSimple(bool)` | `bool` | Derefs to `bool` and allows mutable access. |
//! | T1.2 | `IsTransparentComplex` (generics) | `&'a T` | Derefs to `&'a T` and allows mutable access. |
use super :: *;
use derive_tools_meta :: ;
use test_tools a_id;
;
// #[ derive( Debug, Clone, Copy, PartialEq, DerefMut ) ]
// pub struct IsTransparentComplex< 'a, 'b: 'a, T, U: ToString + ?Sized, const N: usize >( &'a mut T, core ::marker ::PhantomData< &'b U > )
// where
// 'a: 'b,
// T: AsRef< U >;
/// Tests the `DerefMut` derive macro for various struct types.