(
input_span: Span,
ident: Ident,
generics: Generics,
container_attrs: NamedTypeOptions,
data: DataStruct,
)
| 28 | use syn::{DataStruct, Fields, Generics}; |
| 29 | |
| 30 | pub fn to_implementation( |
| 31 | input_span: Span, |
| 32 | ident: Ident, |
| 33 | generics: Generics, |
| 34 | container_attrs: NamedTypeOptions, |
| 35 | data: DataStruct, |
| 36 | ) -> Result<Implementation, Vec<syn::Error>> { |
| 37 | if container_attrs.transparent { |
| 38 | transparent(input_span, ident, generics, data) |
| 39 | } else { |
| 40 | normal(ident, generics, container_attrs, data) |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | fn normal( |
| 45 | ident: Ident, |
no test coverage detected