Check if this is a tuple struct (all fields are unnamed)
(fields: &[&Field])
| 55 | |
| 56 | /// Check if this is a tuple struct (all fields are unnamed) |
| 57 | pub fn is_tuple_struct(fields: &[&Field]) -> bool { |
| 58 | !fields.is_empty() && fields[0].ident.is_none() |
| 59 | } |
| 60 | |
| 61 | thread_local! { |
| 62 | static MACRO_CONTEXT: RefCell<Option<MacroContext>> = const {RefCell::new(None)}; |
no test coverage detected