MCPcopy Create free account
hub / github.com/dcSpark/cddl-codegen / generate_enum

Function generate_enum

src/generation.rs:7811–8486  ·  view source on GitHub ↗
(
    gen_scope: &mut GenerationScope,
    types: &IntermediateTypes,
    name: &RustIdent,
    variants: &[EnumVariant],
    rep: Option<Representation>,
    generate_deserialize_directly: bool,
    

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

codegen_group_choicesFunction · 0.85

Calls 15

add_struct_derivesFunction · 0.85
make_serialization_implFunction · 0.85
make_err_annotate_blockFunction · 0.85
generate_tag_checkFunction · 0.85
create_deserialize_implsFunction · 0.85
bounds_check_if_blockFunction · 0.85
start_lenFunction · 0.85
push_map_choice_key_serFunction · 0.85
end_lenFunction · 0.85

Tested by

no test coverage detected