pub struct BindingRegistry {
pub version: String,
pub target_crate: String,
pub critical_path: Vec<String>,
pub bindings: Vec<KernelBinding>,
}Expand description
Top-level binding registry parsed from YAML.
Fields§
§version: String§target_crate: String§critical_path: Vec<String>Developer-declared critical path functions (Section 28).
CD2 completeness = critical_path entries with bindings / len.
bindings: Vec<KernelBinding>Implementations§
Source§impl BindingRegistry
impl BindingRegistry
Sourcepub fn bindings_for(&self, contract_id: &str) -> Vec<&KernelBinding>
pub fn bindings_for(&self, contract_id: &str) -> Vec<&KernelBinding>
Find all bindings matching a contract (normalizes both sides).
Sourcepub fn find_binding(
&self,
contract_id: &str,
equation: &str,
) -> Option<&KernelBinding>
pub fn find_binding( &self, contract_id: &str, equation: &str, ) -> Option<&KernelBinding>
Find a specific binding by contract + equation (normalizes contract).
Sourcepub fn verified(&self, source_root: &Path) -> BindingRegistry
pub fn verified(&self, source_root: &Path) -> BindingRegistry
L5 verification: return a copy of this registry in which every binding
marked implemented whose function is NOT actually defined in the
source tree under source_root is downgraded to not_implemented.
This turns the L5 predicate “all bindings verified as implemented”
(see crate::proof_status) into a fact instead of a self-declared YAML
flag: a binding only survives as implemented if a real fn <function>
exists in source. Rename or delete the function and the binding is
downgraded, dropping the contract below L5 — the check is falsifiable.
The source tree is scanned once (all .rs files, skipping build/vcs
dirs) and the resulting function-name set is reused for every binding.
Trait Implementations§
Source§impl Clone for BindingRegistry
impl Clone for BindingRegistry
Source§fn clone(&self) -> BindingRegistry
fn clone(&self) -> BindingRegistry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more