#[non_exhaustive]pub struct BranchCharging {
pub g_fr: f64,
pub b_fr: f64,
pub g_to: f64,
pub b_to: f64,
}Expand description
Per terminal branch shunt admittance in p.u. This is the canonical physical branch shunt model when present.
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.g_fr: f64§b_fr: f64§g_to: f64§b_to: f64Implementations§
Source§impl BranchCharging
impl BranchCharging
pub const fn new(g_fr: f64, b_fr: f64, g_to: f64, b_to: f64) -> BranchCharging
pub fn from_total_b(b: f64) -> BranchCharging
pub fn total_b(self) -> f64
pub fn total_g(self) -> f64
pub fn is_matpower_symmetric(self) -> bool
Trait Implementations§
Source§impl Clone for BranchCharging
impl Clone for BranchCharging
Source§fn clone(&self) -> BranchCharging
fn clone(&self) -> BranchCharging
Returns a duplicate of the value. Read more
1.0.0 · 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 BranchCharging
impl Debug for BranchCharging
Source§impl<'de> Deserialize<'de> for BranchCharging
impl<'de> Deserialize<'de> for BranchCharging
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BranchCharging, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BranchCharging, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BranchCharging
impl PartialEq for BranchCharging
Source§impl Serialize for BranchCharging
impl Serialize for BranchCharging
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for BranchCharging
impl StructuralPartialEq for BranchCharging
Auto Trait Implementations§
impl Freeze for BranchCharging
impl RefUnwindSafe for BranchCharging
impl Send for BranchCharging
impl Sync for BranchCharging
impl Unpin for BranchCharging
impl UnsafeUnpin for BranchCharging
impl UnwindSafe for BranchCharging
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