MCPcopy Create free account
hub / github.com/apache/avro-rs / to_implementation

Function to_implementation

avro_derive/src/structs.rs:30–42  ·  view source on GitHub ↗
(
    input_span: Span,
    ident: Ident,
    generics: Generics,
    container_attrs: NamedTypeOptions,
    data: DataStruct,
)

Source from the content-addressed store, hash-verified

28use syn::{DataStruct, Fields, Generics};
29
30pub 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
44fn normal(
45 ident: Ident,

Callers 1

derive_avro_schemaFunction · 0.70

Calls 2

transparentFunction · 0.85
normalFunction · 0.85

Tested by

no test coverage detected