#[non_exhaustive]pub enum PioValue {
Show 22 variants
BalancedNetwork(BalancedNetwork),
MulticonductorNetwork(MulticonductorNetwork),
GeoLayer(GeoLayer),
BalancedOperatingPoint(OperatingPoint<BalancedNetwork>),
MulticonductorOperatingPoint(OperatingPoint<MulticonductorNetwork>),
TimeSeries(PioTimeSeries),
ScenarioSet(PioScenarioSet),
DcPfInstance(DcPfInstance),
AcPfInstance(AcPfInstance),
DcOpfInstance(DcOpfInstance),
AcOpfInstance(AcOpfInstance),
McAcPfInstance(McAcPfInstance),
McAcOpfInstance(McAcOpfInstance),
AcScucInstance(AcScucInstance),
DcPfSolution(DcPfSolution),
AcPfSolution(AcPfSolution),
DcOpfSolution(DcOpfSolution),
AcOpfSolution(AcOpfSolution),
SocwrOpfSolution(SocwrOpfSolution),
McAcPfSolution(McAcPfSolution),
McAcOpfSolution(McAcOpfSolution),
AcScucSolution(AcScucSolution),
}Expand description
A value produced by PowerIO’s universal parser or decoded from PowerIO IR.
Application values remain ordinary PioModule<T> values.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BalancedNetwork(BalancedNetwork)
MulticonductorNetwork(MulticonductorNetwork)
GeoLayer(GeoLayer)
A standalone geographic document: element points and routes keyed by
element identity, placed onto a network by
crate::apply_geo_layer.
BalancedOperatingPoint(OperatingPoint<BalancedNetwork>)
MulticonductorOperatingPoint(OperatingPoint<MulticonductorNetwork>)
TimeSeries(PioTimeSeries)
ScenarioSet(PioScenarioSet)
DcPfInstance(DcPfInstance)
AcPfInstance(AcPfInstance)
DcOpfInstance(DcOpfInstance)
AcOpfInstance(AcOpfInstance)
McAcPfInstance(McAcPfInstance)
McAcOpfInstance(McAcOpfInstance)
AcScucInstance(AcScucInstance)
DcPfSolution(DcPfSolution)
AcPfSolution(AcPfSolution)
DcOpfSolution(DcOpfSolution)
AcOpfSolution(AcOpfSolution)
SocwrOpfSolution(SocwrOpfSolution)
McAcPfSolution(McAcPfSolution)
McAcOpfSolution(McAcOpfSolution)
AcScucSolution(AcScucSolution)
Implementations§
Trait Implementations§
Source§impl From<AcOpfInstance> for PioValue
impl From<AcOpfInstance> for PioValue
Source§fn from(value: AcOpfInstance) -> Self
fn from(value: AcOpfInstance) -> Self
Converts to this type from the input type.
Source§impl From<AcOpfSolution> for PioValue
impl From<AcOpfSolution> for PioValue
Source§fn from(value: AcOpfSolution) -> Self
fn from(value: AcOpfSolution) -> Self
Converts to this type from the input type.
Source§impl From<AcPfInstance> for PioValue
impl From<AcPfInstance> for PioValue
Source§fn from(value: AcPfInstance) -> Self
fn from(value: AcPfInstance) -> Self
Converts to this type from the input type.
Source§impl From<AcPfSolution> for PioValue
impl From<AcPfSolution> for PioValue
Source§fn from(value: AcPfSolution) -> Self
fn from(value: AcPfSolution) -> Self
Converts to this type from the input type.
Source§impl From<AcScucInstance> for PioValue
impl From<AcScucInstance> for PioValue
Source§fn from(value: AcScucInstance) -> Self
fn from(value: AcScucInstance) -> Self
Converts to this type from the input type.
Source§impl From<AcScucSolution> for PioValue
impl From<AcScucSolution> for PioValue
Source§fn from(value: AcScucSolution) -> Self
fn from(value: AcScucSolution) -> Self
Converts to this type from the input type.
Source§impl From<BalancedNetwork> for PioValue
impl From<BalancedNetwork> for PioValue
Source§fn from(value: BalancedNetwork) -> Self
fn from(value: BalancedNetwork) -> Self
Converts to this type from the input type.
Source§impl From<DcOpfInstance> for PioValue
impl From<DcOpfInstance> for PioValue
Source§fn from(value: DcOpfInstance) -> Self
fn from(value: DcOpfInstance) -> Self
Converts to this type from the input type.
Source§impl From<DcOpfSolution> for PioValue
impl From<DcOpfSolution> for PioValue
Source§fn from(value: DcOpfSolution) -> Self
fn from(value: DcOpfSolution) -> Self
Converts to this type from the input type.
Source§impl From<DcPfInstance> for PioValue
impl From<DcPfInstance> for PioValue
Source§fn from(value: DcPfInstance) -> Self
fn from(value: DcPfInstance) -> Self
Converts to this type from the input type.
Source§impl From<DcPfSolution> for PioValue
impl From<DcPfSolution> for PioValue
Source§fn from(value: DcPfSolution) -> Self
fn from(value: DcPfSolution) -> Self
Converts to this type from the input type.
Source§impl From<McAcOpfInstance> for PioValue
impl From<McAcOpfInstance> for PioValue
Source§fn from(value: McAcOpfInstance) -> Self
fn from(value: McAcOpfInstance) -> Self
Converts to this type from the input type.
Source§impl From<McAcOpfSolution> for PioValue
impl From<McAcOpfSolution> for PioValue
Source§fn from(value: McAcOpfSolution) -> Self
fn from(value: McAcOpfSolution) -> Self
Converts to this type from the input type.
Source§impl From<McAcPfInstance> for PioValue
impl From<McAcPfInstance> for PioValue
Source§fn from(value: McAcPfInstance) -> Self
fn from(value: McAcPfInstance) -> Self
Converts to this type from the input type.
Source§impl From<McAcPfSolution> for PioValue
impl From<McAcPfSolution> for PioValue
Source§fn from(value: McAcPfSolution) -> Self
fn from(value: McAcPfSolution) -> Self
Converts to this type from the input type.
Source§impl From<MulticonductorNetwork> for PioValue
impl From<MulticonductorNetwork> for PioValue
Source§fn from(value: MulticonductorNetwork) -> Self
fn from(value: MulticonductorNetwork) -> Self
Converts to this type from the input type.
Source§impl From<OperatingPoint<BalancedNetwork>> for PioValue
impl From<OperatingPoint<BalancedNetwork>> for PioValue
Source§fn from(value: OperatingPoint<BalancedNetwork>) -> Self
fn from(value: OperatingPoint<BalancedNetwork>) -> Self
Converts to this type from the input type.
Source§impl From<OperatingPoint<MulticonductorNetwork>> for PioValue
impl From<OperatingPoint<MulticonductorNetwork>> for PioValue
Source§fn from(value: OperatingPoint<MulticonductorNetwork>) -> Self
fn from(value: OperatingPoint<MulticonductorNetwork>) -> Self
Converts to this type from the input type.
Source§impl From<ScenarioSet<BalancedNetwork>> for PioValue
impl From<ScenarioSet<BalancedNetwork>> for PioValue
Source§fn from(value: ScenarioSet<BalancedNetwork>) -> Self
fn from(value: ScenarioSet<BalancedNetwork>) -> Self
Converts to this type from the input type.
Source§impl From<ScenarioSet<MulticonductorNetwork>> for PioValue
impl From<ScenarioSet<MulticonductorNetwork>> for PioValue
Source§fn from(value: ScenarioSet<MulticonductorNetwork>) -> Self
fn from(value: ScenarioSet<MulticonductorNetwork>) -> Self
Converts to this type from the input type.
Source§impl From<ScenarioSet<OperatingPoint<BalancedNetwork>>> for PioValue
impl From<ScenarioSet<OperatingPoint<BalancedNetwork>>> for PioValue
Source§fn from(value: ScenarioSet<OperatingPoint<BalancedNetwork>>) -> Self
fn from(value: ScenarioSet<OperatingPoint<BalancedNetwork>>) -> Self
Converts to this type from the input type.
Source§impl From<ScenarioSet<OperatingPoint<MulticonductorNetwork>>> for PioValue
impl From<ScenarioSet<OperatingPoint<MulticonductorNetwork>>> for PioValue
Source§fn from(value: ScenarioSet<OperatingPoint<MulticonductorNetwork>>) -> Self
fn from(value: ScenarioSet<OperatingPoint<MulticonductorNetwork>>) -> Self
Converts to this type from the input type.
Source§impl From<ScenarioSet<TimeSeries<BalancedNetwork>>> for PioValue
impl From<ScenarioSet<TimeSeries<BalancedNetwork>>> for PioValue
Source§fn from(value: ScenarioSet<TimeSeries<BalancedNetwork>>) -> Self
fn from(value: ScenarioSet<TimeSeries<BalancedNetwork>>) -> Self
Converts to this type from the input type.
Source§impl From<ScenarioSet<TimeSeries<MulticonductorNetwork>>> for PioValue
impl From<ScenarioSet<TimeSeries<MulticonductorNetwork>>> for PioValue
Source§fn from(value: ScenarioSet<TimeSeries<MulticonductorNetwork>>) -> Self
fn from(value: ScenarioSet<TimeSeries<MulticonductorNetwork>>) -> Self
Converts to this type from the input type.
Source§impl From<ScenarioSet<TimeSeries<OperatingPoint<BalancedNetwork>>>> for PioValue
impl From<ScenarioSet<TimeSeries<OperatingPoint<BalancedNetwork>>>> for PioValue
Source§fn from(value: ScenarioSet<TimeSeries<OperatingPoint<BalancedNetwork>>>) -> Self
fn from(value: ScenarioSet<TimeSeries<OperatingPoint<BalancedNetwork>>>) -> Self
Converts to this type from the input type.
Source§impl From<ScenarioSet<TimeSeries<OperatingPoint<MulticonductorNetwork>>>> for PioValue
impl From<ScenarioSet<TimeSeries<OperatingPoint<MulticonductorNetwork>>>> for PioValue
Source§fn from(
value: ScenarioSet<TimeSeries<OperatingPoint<MulticonductorNetwork>>>,
) -> Self
fn from( value: ScenarioSet<TimeSeries<OperatingPoint<MulticonductorNetwork>>>, ) -> Self
Converts to this type from the input type.
Source§impl From<SocwrOpfSolution> for PioValue
impl From<SocwrOpfSolution> for PioValue
Source§fn from(value: SocwrOpfSolution) -> Self
fn from(value: SocwrOpfSolution) -> Self
Converts to this type from the input type.
Source§impl From<TimeSeries<BalancedNetwork>> for PioValue
impl From<TimeSeries<BalancedNetwork>> for PioValue
Source§fn from(value: TimeSeries<BalancedNetwork>) -> Self
fn from(value: TimeSeries<BalancedNetwork>) -> Self
Converts to this type from the input type.
Source§impl From<TimeSeries<MulticonductorNetwork>> for PioValue
impl From<TimeSeries<MulticonductorNetwork>> for PioValue
Source§fn from(value: TimeSeries<MulticonductorNetwork>) -> Self
fn from(value: TimeSeries<MulticonductorNetwork>) -> Self
Converts to this type from the input type.
Source§impl From<TimeSeries<OperatingPoint<BalancedNetwork>>> for PioValue
impl From<TimeSeries<OperatingPoint<BalancedNetwork>>> for PioValue
Source§fn from(value: TimeSeries<OperatingPoint<BalancedNetwork>>) -> Self
fn from(value: TimeSeries<OperatingPoint<BalancedNetwork>>) -> Self
Converts to this type from the input type.
Source§impl From<TimeSeries<OperatingPoint<MulticonductorNetwork>>> for PioValue
impl From<TimeSeries<OperatingPoint<MulticonductorNetwork>>> for PioValue
Source§fn from(value: TimeSeries<OperatingPoint<MulticonductorNetwork>>) -> Self
fn from(value: TimeSeries<OperatingPoint<MulticonductorNetwork>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PioValue
impl RefUnwindSafe for PioValue
impl Send for PioValue
impl Sync for PioValue
impl Unpin for PioValue
impl UnsafeUnpin for PioValue
impl UnwindSafe for PioValue
Blanket Implementations§
impl<T> Allocation for T
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