mkutils 0.1.146

Utility methods, traits, and types.
Documentation
1
2
3
4
5
6
7
8
use derive_more::{Constructor, From};
use std::time::Instant;

#[derive(Constructor, From)]
pub struct Timestamped<T> {
    pub instant: Instant,
    pub value: T,
}