pub struct MultiSectionLineGroup {
pub from_bus: u32,
pub to_bus: u32,
pub id: String,
pub metered_end: u32,
pub dummy_buses: Vec<u32>,
}Expand description
A multi-section line grouping.
The individual line sections are stored as separate branches in
Network::branches. This struct records the grouping metadata:
which terminal buses the overall line connects, and which dummy
buses are the internal section boundaries.
Fields§
§from_bus: u32From-bus number (I) — first terminal.
to_bus: u32To-bus number (J) — second terminal.
id: StringLine identifier (ID).
metered_end: u32Metered end: 1 = from bus, 2 = to bus (MET).
dummy_buses: Vec<u32>Dummy (intermediate) bus numbers connecting sections.
The actual line has dummy_buses.len() + 1 sections.
Trait Implementations§
Source§impl Clone for MultiSectionLineGroup
impl Clone for MultiSectionLineGroup
Source§fn clone(&self) -> MultiSectionLineGroup
fn clone(&self) -> MultiSectionLineGroup
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 MultiSectionLineGroup
impl Debug for MultiSectionLineGroup
Source§impl Default for MultiSectionLineGroup
impl Default for MultiSectionLineGroup
Source§impl<'de> Deserialize<'de> for MultiSectionLineGroup
impl<'de> Deserialize<'de> for MultiSectionLineGroup
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
Auto Trait Implementations§
impl Freeze for MultiSectionLineGroup
impl RefUnwindSafe for MultiSectionLineGroup
impl Send for MultiSectionLineGroup
impl Sync for MultiSectionLineGroup
impl Unpin for MultiSectionLineGroup
impl UnsafeUnpin for MultiSectionLineGroup
impl UnwindSafe for MultiSectionLineGroup
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