pub struct PrescribedSourceVoltage {
pub source: String,
pub terminals: Vec<String>,
pub v_magnitude: Vec<f64>,
pub v_angle: Vec<f64>,
}Expand description
One source’s prescribed terminal complex voltage: volts and radians per terminal, as the network states them.
Fields§
§source: String§terminals: Vec<String>The source’s terminals, in its stated terminal map order.
v_magnitude: Vec<f64>Volts per terminal (0.0 on grounded terminals).
v_angle: Vec<f64>Radians per terminal.
Trait Implementations§
Source§impl Clone for PrescribedSourceVoltage
impl Clone for PrescribedSourceVoltage
Source§fn clone(&self) -> PrescribedSourceVoltage
fn clone(&self) -> PrescribedSourceVoltage
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 moreSource§impl Debug for PrescribedSourceVoltage
impl Debug for PrescribedSourceVoltage
Source§impl<'de> Deserialize<'de> for PrescribedSourceVoltage
impl<'de> Deserialize<'de> for PrescribedSourceVoltage
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 PrescribedSourceVoltage
impl PartialEq for PrescribedSourceVoltage
Source§fn eq(&self, other: &PrescribedSourceVoltage) -> bool
fn eq(&self, other: &PrescribedSourceVoltage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PrescribedSourceVoltage
impl Serialize for PrescribedSourceVoltage
impl StructuralPartialEq for PrescribedSourceVoltage
Auto Trait Implementations§
impl Freeze for PrescribedSourceVoltage
impl RefUnwindSafe for PrescribedSourceVoltage
impl Send for PrescribedSourceVoltage
impl Sync for PrescribedSourceVoltage
impl Unpin for PrescribedSourceVoltage
impl UnsafeUnpin for PrescribedSourceVoltage
impl UnwindSafe for PrescribedSourceVoltage
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