#[non_exhaustive]pub enum ScenarioMismatch {
Counts {
expected: ElementCounts,
got: ElementCounts,
},
BusOrder,
}Expand description
Why a gridfm scenario snapshot doesn’t line up with the first snapshot’s base element set (the row-stack keeps every table schema-consistent by requiring the same element counts and bus-id ordering across snapshots).
#[non_exhaustive]: future checks (e.g. branch endpoints, voltage base) may
add variants, so downstream matches must keep 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).
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScenarioMismatch
impl Debug for ScenarioMismatch
Source§impl Display for ScenarioMismatch
impl Display for ScenarioMismatch
Source§impl PartialEq for ScenarioMismatch
impl PartialEq for ScenarioMismatch
impl Copy for ScenarioMismatch
impl Eq for ScenarioMismatch
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§
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,
§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