(ty: &syn::Type)
| 393 | } |
| 394 | |
| 395 | fn is_reference(ty: &syn::Type) -> bool { |
| 396 | // Strip any `Option`s |
| 397 | if let Some(ty) = try_extract_option(ty) { |
| 398 | return is_reference(ty); |
| 399 | } |
| 400 | |
| 401 | matches!(ty, syn::Type::Reference(_)) |
| 402 | } |
| 403 | |
| 404 | fn is_list(ty: &syn::Type) -> bool { |
| 405 | if let Some(ty) = try_extract_option(ty) { |
no test coverage detected