pub struct TimeInterval<T> {
pub value: T,
pub interval: Duration,
}Expand description
A value with the time since the previous value (TimeInterval<T>).
Fields§
§value: TThe value (Value).
interval: DurationThe time since the previous value (Interval).
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for TimeInterval<T>
impl<T: Clone> Clone for TimeInterval<T>
Source§impl<T: Debug> Debug for TimeInterval<T>
impl<T: Debug> Debug for TimeInterval<T>
Source§impl<T: Display> Display for TimeInterval<T>
impl<T: Display> Display for TimeInterval<T>
impl<T: Eq> Eq for TimeInterval<T>
Source§impl<T: Hash> Hash for TimeInterval<T>
impl<T: Hash> Hash for TimeInterval<T>
Source§impl<T: PartialEq> PartialEq for TimeInterval<T>
impl<T: PartialEq> PartialEq for TimeInterval<T>
impl<T: PartialEq> StructuralPartialEq for TimeInterval<T>
Auto Trait Implementations§
impl<T> Freeze for TimeInterval<T>where
T: Freeze,
impl<T> RefUnwindSafe for TimeInterval<T>where
T: RefUnwindSafe,
impl<T> Send for TimeInterval<T>where
T: Send,
impl<T> Sync for TimeInterval<T>where
T: Sync,
impl<T> Unpin for TimeInterval<T>where
T: Unpin,
impl<T> UnsafeUnpin for TimeInterval<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TimeInterval<T>where
T: UnwindSafe,
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