Skip to main content

PioValue

Enum PioValue 

Source
#[non_exhaustive]
pub enum PioValue {
Show 27 variants BalancedNetwork(BalancedNetwork), MulticonductorNetwork(MulticonductorNetwork), GeoLayer(GeoLayer), ContingencySet(ContingencySet), SubsystemSet(SubsystemSet), MonitoredSet(MonitoredSet), BalancedOperatingPoint(OperatingPoint<BalancedNetwork>), MulticonductorOperatingPoint(OperatingPoint<MulticonductorNetwork>), TimeSeries(PioTimeSeries), ScenarioSet(PioScenarioSet), DcPfInstance(DcPfInstance), AcPfInstance(AcPfInstance), DcOpfInstance(DcOpfInstance), AcOpfInstance(AcOpfInstance), McAcPfInstance(McAcPfInstance), McAcOpfInstance(McAcOpfInstance), LinDist3FlowOpfInstance(LinDist3FlowOpfInstance), AcScucInstance(AcScucInstance), DcPfSolution(DcPfSolution), AcPfSolution(AcPfSolution), DcOpfSolution(DcOpfSolution), AcOpfSolution(AcOpfSolution), SocwrOpfSolution(SocwrOpfSolution), McAcPfSolution(McAcPfSolution), McAcOpfSolution(McAcOpfSolution), LinDist3FlowOpfSolution(LinDist3FlowOpfSolution), 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.

§

ContingencySet(ContingencySet)

A PSS/E contingency description file (.con): the outages a contingency analysis runs, bound to a network by ContingencySet::resolve.

§

SubsystemSet(SubsystemSet)

A PSS/E subsystem description file (.sub): the named bus groups a contingency description file and a monitored element file draw on.

§

MonitoredSet(MonitoredSet)

A PSS/E monitored element file (.mon): the branch flows, interface flows, and bus voltages a contingency analysis reports on.

§

BalancedOperatingPoint(OperatingPoint<BalancedNetwork>)

§

MulticonductorOperatingPoint(OperatingPoint<MulticonductorNetwork>)

§

TimeSeries(PioTimeSeries)

§

ScenarioSet(PioScenarioSet)

§

DcPfInstance(DcPfInstance)

§

AcPfInstance(AcPfInstance)

§

DcOpfInstance(DcOpfInstance)

§

AcOpfInstance(AcOpfInstance)

§

McAcPfInstance(McAcPfInstance)

§

McAcOpfInstance(McAcOpfInstance)

§

LinDist3FlowOpfInstance(LinDist3FlowOpfInstance)

§

AcScucInstance(AcScucInstance)

§

DcPfSolution(DcPfSolution)

§

AcPfSolution(AcPfSolution)

§

DcOpfSolution(DcOpfSolution)

§

AcOpfSolution(AcOpfSolution)

§

SocwrOpfSolution(SocwrOpfSolution)

§

McAcPfSolution(McAcPfSolution)

§

McAcOpfSolution(McAcOpfSolution)

§

LinDist3FlowOpfSolution(LinDist3FlowOpfSolution)

§

AcScucSolution(AcScucSolution)

Implementations§

Source§

impl PioValue

Source

pub fn type_name(&self) -> &str

Canonical structural type name used by C and PowerIO IR.

Trait Implementations§

Source§

impl Clone for PioValue

Source§

fn clone(&self) -> PioValue

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PioValue

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<AcOpfInstance> for PioValue

Source§

fn from(value: AcOpfInstance) -> Self

Converts to this type from the input type.
Source§

impl From<AcOpfSolution> for PioValue

Source§

fn from(value: AcOpfSolution) -> Self

Converts to this type from the input type.
Source§

impl From<AcPfInstance> for PioValue

Source§

fn from(value: AcPfInstance) -> Self

Converts to this type from the input type.
Source§

impl From<AcPfSolution> for PioValue

Source§

fn from(value: AcPfSolution) -> Self

Converts to this type from the input type.
Source§

impl From<AcScucInstance> for PioValue

Source§

fn from(value: AcScucInstance) -> Self

Converts to this type from the input type.
Source§

impl From<AcScucSolution> for PioValue

Source§

fn from(value: AcScucSolution) -> Self

Converts to this type from the input type.
Source§

impl From<BalancedNetwork> for PioValue

Source§

fn from(value: BalancedNetwork) -> Self

Converts to this type from the input type.
Source§

impl From<ContingencySet> for PioValue

Source§

fn from(value: ContingencySet) -> Self

Converts to this type from the input type.
Source§

impl From<DcOpfInstance> for PioValue

Source§

fn from(value: DcOpfInstance) -> Self

Converts to this type from the input type.
Source§

impl From<DcOpfSolution> for PioValue

Source§

fn from(value: DcOpfSolution) -> Self

Converts to this type from the input type.
Source§

impl From<DcPfInstance> for PioValue

Source§

fn from(value: DcPfInstance) -> Self

Converts to this type from the input type.
Source§

impl From<DcPfSolution> for PioValue

Source§

fn from(value: DcPfSolution) -> Self

Converts to this type from the input type.
Source§

impl From<GeoLayer> for PioValue

Source§

fn from(value: GeoLayer) -> Self

Converts to this type from the input type.
Source§

impl From<LinDist3FlowOpfInstance> for PioValue

Source§

fn from(value: LinDist3FlowOpfInstance) -> Self

Converts to this type from the input type.
Source§

impl From<LinDist3FlowOpfSolution> for PioValue

Source§

fn from(value: LinDist3FlowOpfSolution) -> Self

Converts to this type from the input type.
Source§

impl From<McAcOpfInstance> for PioValue

Source§

fn from(value: McAcOpfInstance) -> Self

Converts to this type from the input type.
Source§

impl From<McAcOpfSolution> for PioValue

Source§

fn from(value: McAcOpfSolution) -> Self

Converts to this type from the input type.
Source§

impl From<McAcPfInstance> for PioValue

Source§

fn from(value: McAcPfInstance) -> Self

Converts to this type from the input type.
Source§

impl From<McAcPfSolution> for PioValue

Source§

fn from(value: McAcPfSolution) -> Self

Converts to this type from the input type.
Source§

impl From<MonitoredSet> for PioValue

Source§

fn from(value: MonitoredSet) -> Self

Converts to this type from the input type.
Source§

impl From<MulticonductorNetwork> for PioValue

Source§

fn from(value: MulticonductorNetwork) -> Self

Converts to this type from the input type.
Source§

impl From<OperatingPoint<BalancedNetwork>> for PioValue

Source§

fn from(value: OperatingPoint<BalancedNetwork>) -> Self

Converts to this type from the input type.
Source§

impl From<OperatingPoint<MulticonductorNetwork>> for PioValue

Source§

fn from(value: OperatingPoint<MulticonductorNetwork>) -> Self

Converts to this type from the input type.
Source§

impl From<ScenarioSet<BalancedNetwork>> for PioValue

Source§

fn from(value: ScenarioSet<BalancedNetwork>) -> Self

Converts to this type from the input type.
Source§

impl From<ScenarioSet<MulticonductorNetwork>> for PioValue

Source§

fn from(value: ScenarioSet<MulticonductorNetwork>) -> Self

Converts to this type from the input type.
Source§

impl From<ScenarioSet<OperatingPoint<BalancedNetwork>>> for PioValue

Source§

fn from(value: ScenarioSet<OperatingPoint<BalancedNetwork>>) -> Self

Converts to this type from the input type.
Source§

impl From<ScenarioSet<OperatingPoint<MulticonductorNetwork>>> for PioValue

Source§

fn from(value: ScenarioSet<OperatingPoint<MulticonductorNetwork>>) -> Self

Converts to this type from the input type.
Source§

impl From<ScenarioSet<TimeSeries<BalancedNetwork>>> for PioValue

Source§

fn from(value: ScenarioSet<TimeSeries<BalancedNetwork>>) -> Self

Converts to this type from the input type.
Source§

impl From<ScenarioSet<TimeSeries<MulticonductorNetwork>>> for PioValue

Source§

fn from(value: ScenarioSet<TimeSeries<MulticonductorNetwork>>) -> Self

Converts to this type from the input type.
Source§

impl From<ScenarioSet<TimeSeries<OperatingPoint<BalancedNetwork>>>> for PioValue

Source§

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

Source§

fn from( value: ScenarioSet<TimeSeries<OperatingPoint<MulticonductorNetwork>>>, ) -> Self

Converts to this type from the input type.
Source§

impl From<SocwrOpfSolution> for PioValue

Source§

fn from(value: SocwrOpfSolution) -> Self

Converts to this type from the input type.
Source§

impl From<SubsystemSet> for PioValue

Source§

fn from(value: SubsystemSet) -> Self

Converts to this type from the input type.
Source§

impl From<TimeSeries<BalancedNetwork>> for PioValue

Source§

fn from(value: TimeSeries<BalancedNetwork>) -> Self

Converts to this type from the input type.
Source§

impl From<TimeSeries<MulticonductorNetwork>> for PioValue

Source§

fn from(value: TimeSeries<MulticonductorNetwork>) -> Self

Converts to this type from the input type.
Source§

impl From<TimeSeries<OperatingPoint<BalancedNetwork>>> for PioValue

Source§

fn from(value: TimeSeries<OperatingPoint<BalancedNetwork>>) -> Self

Converts to this type from the input type.
Source§

impl From<TimeSeries<OperatingPoint<MulticonductorNetwork>>> for PioValue

Source§

fn from(value: TimeSeries<OperatingPoint<MulticonductorNetwork>>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> ByRef<T> for T

§

fn by_ref(&self) -> &T

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V