pub struct SystemTime { /* private fields */ }Implementations§
Source§impl SystemTime
impl SystemTime
pub const MIN: Self
pub const MAX: Self
pub fn now() -> Self
pub const fn as_u128(&self) -> u128
pub const fn from_u128(val: u128) -> Self
pub const fn sub_time(&self, other: &SystemTime) -> Result<Duration, Duration>
pub const fn checked_add_duration(&self, other: &Duration) -> Option<SystemTime>
pub const fn checked_sub_duration(&self, other: &Duration) -> Option<SystemTime>
Trait Implementations§
Source§impl Clone for SystemTime
impl Clone for SystemTime
Source§fn clone(&self) -> SystemTime
fn clone(&self) -> SystemTime
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SystemTime
impl Debug for SystemTime
Source§impl Hash for SystemTime
impl Hash for SystemTime
Source§impl Ord for SystemTime
impl Ord for SystemTime
Source§impl PartialEq for SystemTime
impl PartialEq for SystemTime
Source§impl PartialOrd for SystemTime
impl PartialOrd for SystemTime
impl Copy for SystemTime
impl Eq for SystemTime
impl StructuralPartialEq for SystemTime
Auto Trait Implementations§
impl Freeze for SystemTime
impl RefUnwindSafe for SystemTime
impl Send for SystemTime
impl Sync for SystemTime
impl Unpin for SystemTime
impl UnwindSafe for SystemTime
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)