Refrence lifetimes

This commit is contained in:
2026-05-10 00:35:14 +02:00
parent 910657c755
commit 3e25bf0456
4 changed files with 21 additions and 5 deletions
+2
View File
@@ -634,6 +634,8 @@ impl GetRust for TypePostfix {
match self {
TypePostfix::Ref => format!("&"),
TypePostfix::RefMut => format!("&mut "),
TypePostfix::RefLifetime(lifetime) => format!("&'{} ", lifetime.get_rust()),
TypePostfix::RefMutLifetime(lifetime) => format!("&'{} mut ", lifetime.get_rust()),
}
}
}