#[non_exhaustive]pub enum PreparedAcBusSpecification {
Pq {
p: f64,
q: f64,
},
Pv {
p: f64,
vm: f64,
},
Reference {
vm: f64,
va: f64,
},
Isolated,
}Expand description
One AC power flow bus specification in preparation units.
This has the same cases as AcBusSpecification, but active and
reactive power use the preparation’s selected Units and reference
angles are radians. The builder converts the caller’s exact case and
values; it never derives a replacement from the network bus type.
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.
Trait Implementations§
Source§impl Clone for PreparedAcBusSpecification
impl Clone for PreparedAcBusSpecification
Source§fn clone(&self) -> PreparedAcBusSpecification
fn clone(&self) -> PreparedAcBusSpecification
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 PreparedAcBusSpecification
Source§impl Debug for PreparedAcBusSpecification
impl Debug for PreparedAcBusSpecification
Source§impl<'de> Deserialize<'de> for PreparedAcBusSpecification
impl<'de> Deserialize<'de> for PreparedAcBusSpecification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PreparedAcBusSpecification
impl PartialEq for PreparedAcBusSpecification
Source§fn eq(&self, other: &PreparedAcBusSpecification) -> bool
fn eq(&self, other: &PreparedAcBusSpecification) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PreparedAcBusSpecification
Auto Trait Implementations§
impl Freeze for PreparedAcBusSpecification
impl RefUnwindSafe for PreparedAcBusSpecification
impl Send for PreparedAcBusSpecification
impl Sync for PreparedAcBusSpecification
impl Unpin for PreparedAcBusSpecification
impl UnsafeUnpin for PreparedAcBusSpecification
impl UnwindSafe for PreparedAcBusSpecification
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