Struct perseus::utils::ComputedDuration
source · pub struct ComputedDuration(_);
Expand description
Represents a duration that can be computed relative to the current time.
This should be created through PerseusDuration::into_computed
only.
Implementations§
source§impl ComputedDuration
impl ComputedDuration
sourcepub fn compute_timestamp(&self) -> String
pub fn compute_timestamp(&self) -> String
Get the timestamp of the duration added to the current time.
Trait Implementations§
source§impl Clone for ComputedDuration
impl Clone for ComputedDuration
source§fn clone(&self) -> ComputedDuration
fn clone(&self) -> ComputedDuration
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for ComputedDuration
impl Send for ComputedDuration
impl Sync for ComputedDuration
impl Unpin for ComputedDuration
impl UnwindSafe for ComputedDuration
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