pub struct Sample<T: Copy> {
pub time: Timestamp<T>,
pub value: f64,
}
Expand description
A more generic sample that uses Timestamp<T>
rather than Time64
Fields§
§time: Timestamp<T>
§value: f64
Implementations§
Trait Implementations§
Source§impl<T: Copy> Ord for Sample<T>
impl<T: Copy> Ord for Sample<T>
Source§impl<T: Copy> PartialOrd for Sample<T>
impl<T: Copy> PartialOrd for Sample<T>
impl<T: Copy + Copy> Copy for Sample<T>
impl<T: Copy> Eq for Sample<T>
Auto Trait Implementations§
impl<T> Freeze for Sample<T>
impl<T> RefUnwindSafe for Sample<T>where
T: RefUnwindSafe,
impl<T> Send for Sample<T>where
T: Send,
impl<T> Sync for Sample<T>where
T: Sync,
impl<T> Unpin for Sample<T>where
T: Unpin,
impl<T> UnwindSafe for Sample<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