#[non_exhaustive]pub enum MergeSurvivor {
Strongest,
SmallestId,
FromBus,
}Expand description
Which bus of a merged group survives and carries the group.
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.
Strongest
The group’s reference bus, else a bus hosting an in-service generator, else a bus an in-service generator regulates, with the smallest id breaking each tie.
SmallestId
The group’s smallest bus id, the survivor
powerio_prob::merge_zero_impedance_buses keeps.
FromBus
The from bus: taking the merged elements in table order, closed
switches first, the to bus’s group joins the from bus’s group. This is
the survivor BalancedNetwork::reduce_zero_impedance keeps.
Trait Implementations§
Source§impl Clone for MergeSurvivor
impl Clone for MergeSurvivor
Source§fn clone(&self) -> MergeSurvivor
fn clone(&self) -> MergeSurvivor
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 MergeSurvivor
Source§impl Debug for MergeSurvivor
impl Debug for MergeSurvivor
Source§impl Default for MergeSurvivor
impl Default for MergeSurvivor
Source§fn default() -> MergeSurvivor
fn default() -> MergeSurvivor
Returns the “default value” for a type. Read more
impl Eq for MergeSurvivor
Source§impl PartialEq for MergeSurvivor
impl PartialEq for MergeSurvivor
impl StructuralPartialEq for MergeSurvivor
Auto Trait Implementations§
impl Freeze for MergeSurvivor
impl RefUnwindSafe for MergeSurvivor
impl Send for MergeSurvivor
impl Sync for MergeSurvivor
impl Unpin for MergeSurvivor
impl UnsafeUnpin for MergeSurvivor
impl UnwindSafe for MergeSurvivor
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