pub struct LinkBase {
pub id: String,
pub index: usize,
pub from_node: usize,
pub to_node: usize,
pub initial_status: LinkStatus,
pub initial_setting: Option<f64>,
}Expand description
Properties common to all link types (§2.6.1). Static.
Fields§
§id: StringString identifier for this link.
index: usize1-based index assigned at load time.
from_node: usize1-based index of the start node (positive flow direction: from → to).
to_node: usize1-based index of the end node.
initial_status: LinkStatusInitial operational status at simulation start.
initial_setting: Option<f64>Initial relative speed ω for pumps; initial setpoint for valves; unused for pipes.
None means MISSING — the valve is “fixed” (§2.6.4) and its
status will not be changed by automatic status logic.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinkBase
impl RefUnwindSafe for LinkBase
impl Send for LinkBase
impl Sync for LinkBase
impl Unpin for LinkBase
impl UnsafeUnpin for LinkBase
impl UnwindSafe for LinkBase
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