Struct scsys_core::time::Timestamp
source · pub struct Timestamp<T = u64>(pub T);
Expand description
Timestamp is a generic type used to represent a timestamp.
The timestamp considers the standard timestamp to be the
Tuple Fields§
§0: T
Implementations§
Trait Implementations§
source§impl<T> BorrowMut<T> for Timestamp<T>
impl<T> BorrowMut<T> for Timestamp<T>
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T: Ord> Ord for Timestamp<T>
impl<T: Ord> Ord for Timestamp<T>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialOrd> PartialOrd for Timestamp<T>
impl<T: PartialOrd> PartialOrd for Timestamp<T>
impl<T: Copy> Copy for Timestamp<T>
impl<T: Eq> Eq for Timestamp<T>
impl<T> StructuralPartialEq for Timestamp<T>
Auto Trait Implementations§
impl<T> Freeze for Timestamp<T>where
T: Freeze,
impl<T> RefUnwindSafe for Timestamp<T>where
T: RefUnwindSafe,
impl<T> Send for Timestamp<T>where
T: Send,
impl<T> Sync for Timestamp<T>where
T: Sync,
impl<T> Unpin for Timestamp<T>where
T: Unpin,
impl<T> UnwindSafe for Timestamp<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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)