SchemaFragments.bind: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/schema_fragments.bend as SchemaFragments Lines 145-150 of bendvy-ecs-core@0.1.0.3/schema_fragments.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/schema_fragments.bend&start_line=145&end_line=150 import Base # Validate fragment metadata before consuming Owners with a trusted builder. # BindRejected returns the original fragment; Built contains builder output. # For a builder with explicit descriptor prerequisites use bind_declared. def bind(~S: Data,~Owners: Type,~Output: Type,~build: Owners -> Output,fragment: Fragment) -> Bound: match fragment: case Fragment{+entries,owners}: bind_checked(~S,~Owners,~Output,~build,validate(~S,entries),Fragment{entries,owners}) Uses (4): https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/schema_fragments.bend&name=Bound https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/schema_fragments.bend&name=Fragment https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/schema_fragments.bend&name=bind_checked https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/schema_fragments.bend&name=validate