(&self, info: &TypeInfo)
| 365 | } |
| 366 | |
| 367 | fn uses_two_names(&self, info: &TypeInfo) -> bool { |
| 368 | info.has_list |
| 369 | && info.borrowed |
| 370 | && info.owned |
| 371 | && matches!( |
| 372 | self.ownership(), |
| 373 | Ownership::Borrowing { |
| 374 | duplicate_if_necessary: true |
| 375 | } |
| 376 | ) |
| 377 | } |
| 378 | |
| 379 | fn lifetime_for(&self, info: &TypeInfo, mode: TypeMode) -> Option<&'static str> { |
| 380 | if matches!(self.ownership(), Ownership::Owning) { |
no outgoing calls
no test coverage detected