#[non_exhaustive]pub struct McOpfComplexRow {
pub voltage: Vec<(usize, [f64; 2])>,
pub current: Vec<(usize, [f64; 2])>,
}Expand description
Complex affine expression with no constant term. Coefficients are [real, imaginary].
Voltage indices address preparation.terminals; current indices address the
owning transformer’s coils. Rows of equations are constrained to zero.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.voltage: Vec<(usize, [f64; 2])>Sparse terminal-voltage coefficients in per unit.
current: Vec<(usize, [f64; 2])>Sparse local winding-current coefficients in per unit.
Trait Implementations§
Source§impl Clone for McOpfComplexRow
impl Clone for McOpfComplexRow
Source§impl Debug for McOpfComplexRow
impl Debug for McOpfComplexRow
Source§impl Default for McOpfComplexRow
impl Default for McOpfComplexRow
Source§impl<'de> Deserialize<'de> for McOpfComplexRow
impl<'de> Deserialize<'de> for McOpfComplexRow
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
Auto Trait Implementations§
impl Freeze for McOpfComplexRow
impl RefUnwindSafe for McOpfComplexRow
impl Send for McOpfComplexRow
impl Sync for McOpfComplexRow
impl Unpin for McOpfComplexRow
impl UnsafeUnpin for McOpfComplexRow
impl UnwindSafe for McOpfComplexRow
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