pub struct PenaltiesDefaults {
pub hydro: HydroStagePenalties,
pub bus: BusStagePenalties,
pub line: LineStagePenalties,
pub ncs: NcsStagePenalties,
}Expand description
Default per-stage penalty values for each entity type.
Fields§
§hydro: HydroStagePenaltiesDefault hydro penalties for all (hydro, stage) cells.
bus: BusStagePenaltiesDefault bus penalties for all (bus, stage) cells.
line: LineStagePenaltiesDefault line penalties for all (line, stage) cells.
ncs: NcsStagePenaltiesDefault NCS penalties for all (ncs, stage) cells.
Trait Implementations§
Source§impl Clone for PenaltiesDefaults
impl Clone for PenaltiesDefaults
Source§fn clone(&self) -> PenaltiesDefaults
fn clone(&self) -> PenaltiesDefaults
Returns a duplicate of the value. Read more
1.0.0 · 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 PenaltiesDefaults
impl RefUnwindSafe for PenaltiesDefaults
impl Send for PenaltiesDefaults
impl Sync for PenaltiesDefaults
impl Unpin for PenaltiesDefaults
impl UnsafeUnpin for PenaltiesDefaults
impl UnwindSafe for PenaltiesDefaults
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