pub struct PeakDemands(/* private fields */);Implementations§
Source§impl PeakDemands
impl PeakDemands
pub fn new( calc_method: TariffCalculationMethod, period: CostPeriod, period_averages: Vec<AverageDemand>, ) -> Self
pub fn values(&self) -> &[AverageDemand]
Trait Implementations§
Source§impl Clone for PeakDemands
impl Clone for PeakDemands
Source§fn clone(&self) -> PeakDemands
fn clone(&self) -> PeakDemands
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 PeakDemands
impl Debug for PeakDemands
Source§impl Default for PeakDemands
impl Default for PeakDemands
Source§fn default() -> PeakDemands
fn default() -> PeakDemands
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PeakDemands
impl RefUnwindSafe for PeakDemands
impl Send for PeakDemands
impl Sync for PeakDemands
impl Unpin for PeakDemands
impl UnwindSafe for PeakDemands
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