Skip to main content

validate_binding

Function validate_binding 

Source
pub fn validate_binding(
    resolved: &ResolvedBinding,
) -> Result<(), Vec<CapabilityError>>
Expand description

Validate a resolved binding against the medium-capability matrix (D6), returning every capability refusal (empty Err never returned — Ok means clean). Generalizes the render-time preparation refusal to binding-validation time.

Refuses, per D6:

A binding whose every declared operation the matrix marks legal validates clean (Ok(())). This is a new, callable entry point — it is not yet wired into the live loader / resolve path.