pub struct StdInstant(pub Instant);Expand description
A wrapper around std::time::Instant
Tuple Fields§
§0: InstantTrait Implementations§
Source§impl Add<Duration> for StdInstant
Available on crate feature std only.
impl Add<Duration> for StdInstant
Available on crate feature
std only.Source§impl Clone for StdInstant
impl Clone for StdInstant
Source§fn clone(&self) -> StdInstant
fn clone(&self) -> StdInstant
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StdInstant
impl Debug for StdInstant
Source§impl InstantLike for StdInstant
Available on crate feature std only.
impl InstantLike for StdInstant
Available on crate feature
std only.Source§fn duration_since(&self, other: Self) -> Duration
fn duration_since(&self, other: Self) -> Duration
Returns the amount of time elapsed from another instant to this one
impl Copy for StdInstant
Auto Trait Implementations§
impl Freeze for StdInstant
impl RefUnwindSafe for StdInstant
impl Send for StdInstant
impl Sync for StdInstant
impl Unpin for StdInstant
impl UnsafeUnpin for StdInstant
impl UnwindSafe for StdInstant
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