pub struct Process {
pub id: ProcessID,
pub description: String,
pub years: RangeInclusive<u32>,
pub energy_limits: ProcessEnergyLimitsMap,
pub flows: Vec<ProcessFlow>,
pub parameters: ProcessParameterMap,
pub regions: HashSet<RegionID>,
}
Expand description
Represents a process within the simulation
Fields§
§id: ProcessID
A unique identifier for the process (e.g. GASDRV)
description: String
A human-readable description for the process (e.g. dry gas extraction)
years: RangeInclusive<u32>
The years in which this process is available for investment
energy_limits: ProcessEnergyLimitsMap
Limits on PAC energy consumption/production for each time slice (as a fraction of maximum)
flows: Vec<ProcessFlow>
Maximum annual commodity flows for this process
parameters: ProcessParameterMap
Additional parameters for this process
regions: HashSet<RegionID>
The regions in which this process can operate
Implementations§
Trait Implementations§
impl StructuralPartialEq for Process
Auto Trait Implementations§
impl Freeze for Process
impl RefUnwindSafe for Process
impl !Send for Process
impl !Sync for Process
impl Unpin for Process
impl UnwindSafe for Process
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more