pub struct ResourceTriple {
pub energy: Estimate<f64>,
pub time: Estimate<f64>,
pub space: Estimate<f64>,
}Expand description
The resource constraint triple (E, T, S) for a computation event.
All three values use Estimate<f64> to carry measurement uncertainty.
See ResourceTriple::validate_physics for the physical consistency checks.
PACR field Ω. Derived from Pillar II (conservation laws + Margolus–Levitin).
Fields§
§energy: Estimate<f64>Actual energy consumed (joules). Must satisfy energy.point ≥ Λ.point.
time: Estimate<f64>Actual execution duration (seconds). Must satisfy Margolus–Levitin bound.
space: Estimate<f64>Actual memory/storage used (bytes, as f64 for SI-unit consistency).
Implementations§
Source§impl ResourceTriple
impl ResourceTriple
Sourcepub fn validate_physics(&self) -> Vec<PhysicsViolation>
pub fn validate_physics(&self) -> Vec<PhysicsViolation>
Validates physical consistency of this triple.
Returns every violation found; an empty Vec means the record is clean.
A physically invalid record is still storable (measurement errors happen),
but violations must be flagged for the Landauer auditor to investigate.
Sourcepub fn thermodynamic_waste(&self, landauer: &LandauerCost) -> Estimate<f64>
pub fn thermodynamic_waste(&self, landauer: &LandauerCost) -> Estimate<f64>
Thermodynamic waste = E − Λ with conservative uncertainty propagation.
Uncertainty is propagated as:
waste.lower = energy.lower − λ.upper (minimum possible waste)
waste.upper = energy.upper − λ.lower (maximum possible waste)
Trait Implementations§
Source§impl Clone for ResourceTriple
impl Clone for ResourceTriple
Source§fn clone(&self) -> ResourceTriple
fn clone(&self) -> ResourceTriple
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more