pub enum Node {
Pressure(Pressure),
Flow(Flow),
Connection(Connection),
}Variants§
Implementations§
Source§impl Node
impl Node
pub fn id(&self) -> usize
pub fn is_connection(&self) -> bool
pub fn is_known_pressure(&self) -> bool
pub fn is_known_flow(&self) -> bool
pub fn elevation(&mut self) -> &mut f64
pub fn pressure(&mut self) -> &mut Vec<f64>
pub fn steady_pressure(&mut self) -> &mut f64
pub fn current_pressure(&mut self) -> f64
pub fn consumption(&mut self) -> &mut Vec<f64>
pub fn steady_consumption(&mut self) -> &mut f64
pub fn head(&mut self, g: f64, density: f64) -> Vec<f64>
pub fn steady_head(&mut self, g: f64, density: f64) -> f64
pub fn update_id(&mut self, id: usize)
pub fn add_boundary_value(&mut self, value: f64)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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