pub struct UnixTimestamp(/* private fields */);Expand description
Block timestamp as Unix seconds.
Implementations§
Trait Implementations§
Source§impl Clone for UnixTimestamp
impl Clone for UnixTimestamp
Source§fn clone(&self) -> UnixTimestamp
fn clone(&self) -> UnixTimestamp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UnixTimestamp
Source§impl Debug for UnixTimestamp
impl Debug for UnixTimestamp
impl Eq for UnixTimestamp
Source§impl From<UnixTimestamp> for u64
impl From<UnixTimestamp> for u64
Source§fn from(value: UnixTimestamp) -> Self
fn from(value: UnixTimestamp) -> Self
Converts to this type from the input type.
Source§impl From<u64> for UnixTimestamp
impl From<u64> for UnixTimestamp
Source§impl Hash for UnixTimestamp
impl Hash for UnixTimestamp
Source§impl Ord for UnixTimestamp
impl Ord for UnixTimestamp
Source§fn cmp(&self, other: &UnixTimestamp) -> Ordering
fn cmp(&self, other: &UnixTimestamp) -> Ordering
1.21.0 (const: unstable) · 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 PartialEq for UnixTimestamp
impl PartialEq for UnixTimestamp
Source§fn eq(&self, other: &UnixTimestamp) -> bool
fn eq(&self, other: &UnixTimestamp) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for UnixTimestamp
impl PartialOrd for UnixTimestamp
impl StructuralPartialEq for UnixTimestamp
Auto Trait Implementations§
impl Freeze for UnixTimestamp
impl RefUnwindSafe for UnixTimestamp
impl Send for UnixTimestamp
impl Sync for UnixTimestamp
impl Unpin for UnixTimestamp
impl UnsafeUnpin for UnixTimestamp
impl UnwindSafe for UnixTimestamp
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