#[non_exhaustive]pub enum TargetFormat {
PowerModelsJson,
EgretJson,
Psse {
rev: u32,
},
PowerWorld,
PandapowerJson,
Matpower,
PowerioJson,
Pslf,
}Expand description
A target interchange format. See write_as.
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.
PowerModelsJson
PowerModels.jl network data JSON.
EgretJson
egret ModelData JSON.
Psse
PSS/E .raw at the given revision. rev selects the record layout the
writer emits (33, 34, or 35); 33 is the historical default. The reader
takes the revision from the file header, so this only affects writes.
PowerWorld
PowerWorld auxiliary .aux.
PandapowerJson
pandapower pandapowerNet JSON.
Matpower
MATPOWER .m (round-trip; byte-exact when the case kept its source).
PowerioJson
The canonical PowerIO snapshot: Network serialized as JSON, validated
on read. Lossless for every model field; the retained source text is the
one exclusion (see Network::to_json).
Pslf
GE PSLF .epc (round-trip; byte-exact when the case kept its source).
Implementations§
Trait Implementations§
Source§impl Clone for TargetFormat
impl Clone for TargetFormat
Source§fn clone(&self) -> TargetFormat
fn clone(&self) -> TargetFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TargetFormat
Source§impl Debug for TargetFormat
impl Debug for TargetFormat
Source§impl Display for TargetFormat
impl Display for TargetFormat
impl Eq for TargetFormat
Source§impl FromStr for TargetFormat
impl FromStr for TargetFormat
Source§impl PartialEq for TargetFormat
impl PartialEq for TargetFormat
Source§fn eq(&self, other: &TargetFormat) -> bool
fn eq(&self, other: &TargetFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TargetFormat
Auto Trait Implementations§
impl Freeze for TargetFormat
impl RefUnwindSafe for TargetFormat
impl Send for TargetFormat
impl Sync for TargetFormat
impl Unpin for TargetFormat
impl UnsafeUnpin for TargetFormat
impl UnwindSafe for TargetFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.