pub enum DisplayPeriod {
Day,
Week,
Month,
Year,
}Expand description
The four display periods in the May 2018 FNN Basiszähler profile.
Variants§
Implementations§
Source§impl DisplayPeriod
impl DisplayPeriod
Sourcepub fn window(
self,
opening: i64,
current: i64,
age: u16,
) -> Option<RangeInclusive<i64>>
pub fn window( self, opening: i64, current: i64, age: u16, ) -> Option<RangeInclusive<i64>>
Endpoints of the cumulative registers to subtract. Age 1 is the most recent complete period. The display refreshes once per powered day after commissioning. Returns None for an unavailable period or invalid age.
Trait Implementations§
Source§impl Clone for DisplayPeriod
impl Clone for DisplayPeriod
impl Copy for DisplayPeriod
Source§impl Debug for DisplayPeriod
impl Debug for DisplayPeriod
impl Eq for DisplayPeriod
Source§impl PartialEq for DisplayPeriod
impl PartialEq for DisplayPeriod
impl StructuralPartialEq for DisplayPeriod
Auto Trait Implementations§
impl Freeze for DisplayPeriod
impl RefUnwindSafe for DisplayPeriod
impl Send for DisplayPeriod
impl Sync for DisplayPeriod
impl Unpin for DisplayPeriod
impl UnsafeUnpin for DisplayPeriod
impl UnwindSafe for DisplayPeriod
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