pub struct HydSnapshot {
pub t: f64,
pub node_states: Vec<NodeState>,
pub link_states: Vec<LinkState>,
}Expand description
Hydraulic state snapshot at a single simulation time (§8.2).
Fields§
§t: f64Simulation time (s).
node_states: Vec<NodeState>Per-node hydraulic and quality state at time t.
link_states: Vec<LinkState>Per-link hydraulic and quality state at time t.
Trait Implementations§
Source§impl Clone for HydSnapshot
impl Clone for HydSnapshot
Source§fn clone(&self) -> HydSnapshot
fn clone(&self) -> HydSnapshot
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 moreAuto Trait Implementations§
impl Freeze for HydSnapshot
impl RefUnwindSafe for HydSnapshot
impl Send for HydSnapshot
impl Sync for HydSnapshot
impl Unpin for HydSnapshot
impl UnsafeUnpin for HydSnapshot
impl UnwindSafe for HydSnapshot
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