pub struct TransmissionCore {
pub buses: usize,
pub branches: usize,
pub generators: usize,
pub loads: usize,
pub shunts: usize,
pub load_p: i64,
pub load_q: i64,
pub gen_p: i64,
pub base_mva: i64,
}Expand description
Element counts and the totals that must survive any conversion.
Fields§
§buses: usize§branches: usize§generators: usize§loads: usize§shunts: usize§load_p: i64§load_q: i64§gen_p: i64§base_mva: i64Implementations§
Source§impl TransmissionCore
impl TransmissionCore
Sourcepub fn agrees_within(&self, other: &Self, tolerance: f64) -> bool
pub fn agrees_within(&self, other: &Self, tolerance: f64) -> bool
Whether two cores state the same case under a relative tolerance on the power totals.
Element counts are compared exactly. A format that states each value in
a fixed width field returns fewer digits than the total carries, so the
totals are compared within tolerance.
Trait Implementations§
Source§impl Clone for TransmissionCore
impl Clone for TransmissionCore
Source§impl Debug for TransmissionCore
impl Debug for TransmissionCore
impl Eq for TransmissionCore
Source§impl PartialEq for TransmissionCore
impl PartialEq for TransmissionCore
impl StructuralPartialEq for TransmissionCore
Auto Trait Implementations§
impl Freeze for TransmissionCore
impl RefUnwindSafe for TransmissionCore
impl Send for TransmissionCore
impl Sync for TransmissionCore
impl Unpin for TransmissionCore
impl UnsafeUnpin for TransmissionCore
impl UnwindSafe for TransmissionCore
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.