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

Function mint_struct

src/emit_tests.rs:1209–1298  ·  view source on GitHub ↗

Mint a valid instance of a NAMED generated struct, recursing into its fields (depth-capped so recursion terminates: at the cap this returns `None`, which an enclosing unbounded collection absorbs by minting empty — loudly — while any other enclosing mint gets the caller's loud skip).

(
    types: &IntermediateTypes,
    ident: &crate::intermediate::RustIdent,
    depth: u8,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

wasm_record_roundtripFunction · 0.85
wasm_wrapper_roundtripFunction · 0.85
valid_value_atFunction · 0.85

Calls 9

valid_value_atFunction · 0.85
record_ctor_can_failFunction · 0.85
semantic_tag_contentFunction · 0.85
materialize_atFunction · 0.85
wrapper_measureFunction · 0.85
mint_choiceFunction · 0.85
rust_structMethod · 0.80
variantMethod · 0.80
is_fixed_valueMethod · 0.80

Tested by

no test coverage detected