pub struct PeakPeriods { /* private fields */ }Implementations§
Source§impl PeakPeriods
impl PeakPeriods
pub fn new( calc_method: TariffCalculationMethod, periods: CostPeriods, averages: Vec<AverageDemand>, ) -> Self
pub fn items(&self) -> &[PeriodDemand]
Trait Implementations§
Source§impl Clone for PeakPeriods
impl Clone for PeakPeriods
Source§fn clone(&self) -> PeakPeriods
fn clone(&self) -> PeakPeriods
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 PeakPeriods
impl RefUnwindSafe for PeakPeriods
impl Send for PeakPeriods
impl Sync for PeakPeriods
impl Unpin for PeakPeriods
impl UnwindSafe for PeakPeriods
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