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

Function wrapper_construct_reject

src/emit_tests.rs:970–1007  ·  view source on GitHub ↗

construct-reject for a bounded `@newtype` wrapper. The wrapper checks the *raw* `min_max` against the inner value (or its `.len()`), with no nint transform, so we synthesize directly from `min_max`.

(
    types: &IntermediateTypes,
    name: &str,
    wrapped: &RustType,
    min_max: Bounds,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

emit_generated_testsFunction · 0.85

Calls 4

measure_kindFunction · 0.85
bound_casesFunction · 0.85
render_rustFunction · 0.85
nint_bounds_to_u64Function · 0.70

Tested by

no test coverage detected