pub struct GenCostPatch {
pub gen_index: usize,
pub bus: BusId,
pub cost: GenCost,
}Expand description
One explicit generator cost patch from a user supplied table.
Fields§
§gen_index: usizeZero based index into Network::generators.
bus: BusIdBus id expected on that generator, used to catch stale patch tables.
cost: GenCostTrait Implementations§
Source§impl Clone for GenCostPatch
impl Clone for GenCostPatch
Source§fn clone(&self) -> GenCostPatch
fn clone(&self) -> GenCostPatch
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 moreSource§impl Debug for GenCostPatch
impl Debug for GenCostPatch
Source§impl<'de> Deserialize<'de> for GenCostPatch
impl<'de> Deserialize<'de> for GenCostPatch
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GenCostPatch, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GenCostPatch, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for GenCostPatch
impl Serialize for GenCostPatch
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for GenCostPatch
impl RefUnwindSafe for GenCostPatch
impl Send for GenCostPatch
impl Sync for GenCostPatch
impl Unpin for GenCostPatch
impl UnsafeUnpin for GenCostPatch
impl UnwindSafe for GenCostPatch
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