Skip to content

Commit fe28a82

Browse files
committed
update: code
1 parent a3a7e2b commit fe28a82

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

debug/src/main.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,22 @@ where
1919
r#type: &'a str,
2020
}
2121

22+
#[derive(Data, Debug, Clone, DisplayDebugFormat)]
23+
struct r#type<'a, 'b, T: Clone>
24+
where
25+
T: Debug,
26+
{
27+
#[get(pub(crate))]
28+
#[set(pub(crate))]
29+
list: Vec<String>,
30+
#[get(pub(crate))]
31+
opt_str_lifetime_a: Option<&'a T>,
32+
#[set(private)]
33+
#[get_mut(pub(crate))]
34+
opt_str_lifetime_b: Option<&'b str>,
35+
r#type: &'a str,
36+
}
37+
2238
impl<'a, 'b, T: Clone + Debug> LombokTest<'a, 'b, T> {
2339
pub fn test_type(&self) {
2440
self.r#type;

0 commit comments

Comments
 (0)