#[non_exhaustive]pub struct PrescribedSourceBoundary<'a> {
pub source: &'a str,
pub bus: &'a str,
pub terminals: &'a [String],
pub reference_terminal: Option<&'a str>,
pub v_magnitude: &'a [f64],
pub v_angle: &'a [f64],
}Expand description
Complete borrowed source boundary: V(terminal) - V(reference) is the
stated phasor. None means earth; a named reference is on bus and does
not imply a connection to earth. Every phase current has an equal
opposite contribution at the reference.
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.source: &'a str§bus: &'a str§terminals: &'a [String]§reference_terminal: Option<&'a str>§v_magnitude: &'a [f64]§v_angle: &'a [f64]Trait Implementations§
Source§impl<'a> Clone for PrescribedSourceBoundary<'a>
impl<'a> Clone for PrescribedSourceBoundary<'a>
impl<'a> Copy for PrescribedSourceBoundary<'a>
Auto Trait Implementations§
impl<'a> Freeze for PrescribedSourceBoundary<'a>
impl<'a> RefUnwindSafe for PrescribedSourceBoundary<'a>
impl<'a> Send for PrescribedSourceBoundary<'a>
impl<'a> Sync for PrescribedSourceBoundary<'a>
impl<'a> Unpin for PrescribedSourceBoundary<'a>
impl<'a> UnsafeUnpin for PrescribedSourceBoundary<'a>
impl<'a> UnwindSafe for PrescribedSourceBoundary<'a>
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