pub struct DependencyClosureV1 { /* private fields */ }Expand description
Immutable V1 closure bound to one primary input.
Implementations§
Source§impl DependencyClosureV1
impl DependencyClosureV1
Safe fail-closed value for a loader that has no resource projection.
Sourcepub const fn contract_id(&self) -> &'static str
pub const fn contract_id(&self) -> &'static str
Semantic identity of this value contract.
Sourcepub const fn budget(&self) -> ResourceClosureBudgetV1
pub const fn budget(&self) -> ResourceClosureBudgetV1
Immutable V1 budget recorded with the closure.
Sourcepub const fn primary_input(&self) -> &InputIdentity
pub const fn primary_input(&self) -> &InputIdentity
Exact primary input identity.
Sourcepub const fn coverage(&self) -> &DependencyClosureCoverageV1
pub const fn coverage(&self) -> &DependencyClosureCoverageV1
Closure coverage.
Sourcepub const fn identity(&self) -> Option<&DependencyClosureIdentityV1>
pub const fn identity(&self) -> Option<&DependencyClosureIdentityV1>
Exact canonical closure identity, present only for complete coverage.
Sourcepub fn references(&self) -> &[DependencyClosureReferenceV1]
pub fn references(&self) -> &[DependencyClosureReferenceV1]
Source-order declaration mappings retained before any terminal stop.
Sourcepub fn external_resources(&self) -> &[ExternalResourceIdentityV1]
pub fn external_resources(&self) -> &[ExternalResourceIdentityV1]
Distinct external identities in normalized-key order.
Sourcepub const fn work(&self) -> DependencyClosureWorkV1
pub const fn work(&self) -> DependencyClosureWorkV1
Explicit bounded capture work counters.
Sourcepub fn record_identity(&self) -> InputIdentity
pub fn record_identity(&self) -> InputIdentity
Canonical fingerprint of the complete serialized closure record.
Unlike Self::identity, this is available for partial and unavailable
records and therefore does not prove closure completeness. It exists
so another versioned contract can commit to the exact bounded evidence
record without depending on JSON encoder details.
Trait Implementations§
Source§impl Clone for DependencyClosureV1
impl Clone for DependencyClosureV1
Source§fn clone(&self) -> DependencyClosureV1
fn clone(&self) -> DependencyClosureV1
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more