#[non_exhaustive]pub enum ScenarioMismatch {
Counts {
expected: ElementCounts,
got: ElementCounts,
},
BusOrder,
BranchOrder,
GeneratorOrder,
BaseMva,
DuplicateScenarioId {
scenario: i64,
first_index: usize,
},
}Expand description
Why a gridfm scenario snapshot doesn’t line up with the first snapshot’s batch (the row stack uses each table’s row number as element identity).
This enum is #[non_exhaustive]; downstream matches must include a wildcard
arm.
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.
Counts
Element counts differ.
BusOrder
Counts match, but the buses are listed in a different order (so the dense bus index wouldn’t mean the same bus across snapshots).
BranchOrder
A branch row has a different endpoint pair or component identity.
GeneratorOrder
A generator row has a different bus or component identity.
BaseMva
The snapshot uses a different system power base.
DuplicateScenarioId
Another snapshot already uses this scenario id.
Trait Implementations§
Source§impl Clone for ScenarioMismatch
impl Clone for ScenarioMismatch
Source§fn clone(&self) -> ScenarioMismatch
fn clone(&self) -> ScenarioMismatch
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 ScenarioMismatch
Source§impl Debug for ScenarioMismatch
impl Debug for ScenarioMismatch
Source§impl Display for ScenarioMismatch
impl Display for ScenarioMismatch
impl Eq for ScenarioMismatch
Source§impl PartialEq for ScenarioMismatch
impl PartialEq for ScenarioMismatch
Source§fn eq(&self, other: &ScenarioMismatch) -> bool
fn eq(&self, other: &ScenarioMismatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ScenarioMismatch
Auto Trait Implementations§
impl Freeze for ScenarioMismatch
impl RefUnwindSafe for ScenarioMismatch
impl Send for ScenarioMismatch
impl Sync for ScenarioMismatch
impl Unpin for ScenarioMismatch
impl UnsafeUnpin for ScenarioMismatch
impl UnwindSafe for ScenarioMismatch
Blanket Implementations§
impl<T> Allocation for T
impl<T> Boilerplate 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more