pub enum PremiseAttribute {
Head,
Pressure,
Demand,
Level,
Flow,
Status,
Setting,
Power,
FillTime,
DrainTime,
ClockTime,
Time,
}Expand description
Attribute tested by a rule premise (§2.8.2).
Variants§
Head
Hydraulic head (m).
Pressure
Pressure (m).
Demand
Demand (flow units).
Level
Tank water level (m).
Flow
Link flow rate (flow units).
Status
Link status (open/closed).
Setting
Link setting value.
Power
Pump power (kW).
FillTime
Time to fill a tank (hours).
DrainTime
Time to drain a tank (hours).
ClockTime
Time of day (hours from midnight).
Time
Elapsed simulation time (hours).
Trait Implementations§
Source§impl Clone for PremiseAttribute
impl Clone for PremiseAttribute
Source§fn clone(&self) -> PremiseAttribute
fn clone(&self) -> PremiseAttribute
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 moreimpl Copy for PremiseAttribute
Source§impl Debug for PremiseAttribute
impl Debug for PremiseAttribute
impl Eq for PremiseAttribute
Source§impl PartialEq for PremiseAttribute
impl PartialEq for PremiseAttribute
Source§fn eq(&self, other: &PremiseAttribute) -> bool
fn eq(&self, other: &PremiseAttribute) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PremiseAttribute
Auto Trait Implementations§
impl Freeze for PremiseAttribute
impl RefUnwindSafe for PremiseAttribute
impl Send for PremiseAttribute
impl Sync for PremiseAttribute
impl Unpin for PremiseAttribute
impl UnsafeUnpin for PremiseAttribute
impl UnwindSafe for PremiseAttribute
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