Skip to main content

BalancedCalculationInstance

Trait BalancedCalculationInstance 

Source
pub trait BalancedCalculationInstance: Clone + UpdateTarget<CalculationUpdate> {
    // Required method
    fn network(&self) -> &BalancedNetwork;
}
Expand description

The calculation types used by solver consumers. The full problem vocabulary lives in powerio_prob; these types sit at the facade root so a consumer does not need a second PowerIO dependency to name its boundary. A balanced calculation instance whose network can receive typed updates.

This trait lets one PowerIO operation cover the balanced power flow and optimal power flow instance types without copying their tables.

Required Methods§

Source

fn network(&self) -> &BalancedNetwork

The instance’s balanced electrical network.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§