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).
Trait Implementations§
Source§impl Clone for BindingRegistry
impl Clone for BindingRegistry
Source§fn clone(&self) -> BindingRegistry
fn clone(&self) -> BindingRegistry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BindingRegistry
impl Debug for BindingRegistry
Source§impl<'de> Deserialize<'de> for BindingRegistry
impl<'de> Deserialize<'de> for BindingRegistry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BindingRegistry
impl RefUnwindSafe for BindingRegistry
impl Send for BindingRegistry
impl Sync for BindingRegistry
impl Unpin for BindingRegistry
impl UnsafeUnpin for BindingRegistry
impl UnwindSafe for BindingRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more