#[non_exhaustive]pub struct NetworkPrimitives<'a> {
pub elements: Vec<PassivePrimitive<'a>>,
pub grounded: Vec<GroundedNeutral<'a>>,
pub ideal_transformers: Vec<&'a DistTransformer>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
Every admittance element of a network with the exact constraints it
leaves to the caller: calc_passive_primitives.
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.elements: Vec<PassivePrimitive<'a>>Lines, shunts, capacitor banks, then transformers stating leakage, each family in table order.
grounded: Vec<GroundedNeutral<'a>>Solidly grounded transformer neutrals, once per (bus, terminal)
spelling, in transformer order.
ideal_transformers: Vec<&'a DistTransformer>Transformers that state no leakage: ideal couplings with no admittance, which need exact voltage constraints.
diagnostics: Vec<Diagnostic>Elements left out because the builders do not stamp them.
Trait Implementations§
Source§impl<'a> Clone for NetworkPrimitives<'a>
impl<'a> Clone for NetworkPrimitives<'a>
Auto Trait Implementations§
impl<'a> Freeze for NetworkPrimitives<'a>
impl<'a> RefUnwindSafe for NetworkPrimitives<'a>
impl<'a> Send for NetworkPrimitives<'a>
impl<'a> Sync for NetworkPrimitives<'a>
impl<'a> Unpin for NetworkPrimitives<'a>
impl<'a> UnsafeUnpin for NetworkPrimitives<'a>
impl<'a> UnwindSafe for NetworkPrimitives<'a>
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