pub struct Storage {
pub power_mw: f64,
pub energy_mwh: f64,
pub round_trip: f64,
pub cycle_cost: f64,
}Expand description
One pool’s batteries as one storage.
Fields§
§power_mw: f64Rated power, MW (charge plus discharge never exceed it).
energy_mwh: f64Usable energy, MWh.
round_trip: f64Round-trip efficiency in (0, 1].
cycle_cost: f64Cost per MWh discharged, €/MWh.
Implementations§
Trait Implementations§
impl Copy for Storage
impl StructuralPartialEq for Storage
Auto Trait Implementations§
impl Forget for Storage
impl Freeze for Storage
impl Move for Storage
impl RefUnwindSafe for Storage
impl Send for Storage
impl Sync for Storage
impl Unpin for Storage
impl UnsafeUnpin for Storage
impl UnwindSafe for Storage
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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