#[non_exhaustive]pub struct DcBranchData {
pub from_bus: Vec<usize>,
pub to_bus: Vec<usize>,
pub b: Vec<f64>,
pub shift: Vec<f64>,
pub f_max: Vec<f64>,
pub angle_min: Vec<f64>,
pub angle_max: Vec<f64>,
pub source_rows: Vec<usize>,
pub skipped_zero_impedance: Vec<usize>,
}Expand description
Branch data in active branch column order.
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.from_bus: Vec<usize>§to_bus: Vec<usize>§b: Vec<f64>Branch coefficient in the selected power unit per radian.
shift: Vec<f64>Phase shift in radians. Zero under DcConvention::PaperPure.
f_max: Vec<f64>Thermal limit in the selected power unit. Zero means unlimited.
angle_min: Vec<f64>Branch angle bounds in radians.
angle_max: Vec<f64>§source_rows: Vec<usize>Branch column to source branch row.
skipped_zero_impedance: Vec<usize>Source branch rows omitted because their reactance was zero.
Trait Implementations§
Source§impl Clone for DcBranchData
impl Clone for DcBranchData
Source§fn clone(&self) -> DcBranchData
fn clone(&self) -> DcBranchData
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 DcBranchData
impl Debug for DcBranchData
Source§impl<'de> Deserialize<'de> for DcBranchData
impl<'de> Deserialize<'de> for DcBranchData
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 DcBranchData
impl PartialEq for DcBranchData
Source§impl Serialize for DcBranchData
impl Serialize for DcBranchData
impl StructuralPartialEq for DcBranchData
Auto Trait Implementations§
impl Freeze for DcBranchData
impl RefUnwindSafe for DcBranchData
impl Send for DcBranchData
impl Sync for DcBranchData
impl Unpin for DcBranchData
impl UnsafeUnpin for DcBranchData
impl UnwindSafe for DcBranchData
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