pub struct MeanLifetime(/* private fields */);
Expand description
Average length of time that a particular item remains in the set. (Tau)
Implementations§
Source§impl MeanLifetime
impl MeanLifetime
pub fn decay_factor_at(&self, time: &Duration) -> f64
Trait Implementations§
Source§impl Clone for MeanLifetime
impl Clone for MeanLifetime
Source§fn clone(&self) -> MeanLifetime
fn clone(&self) -> MeanLifetime
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 moreSource§impl Debug for MeanLifetime
impl Debug for MeanLifetime
Source§impl From<DecayConstant> for MeanLifetime
impl From<DecayConstant> for MeanLifetime
Source§fn from(value: DecayConstant) -> Self
fn from(value: DecayConstant) -> Self
Converts to this type from the input type.
Source§impl From<Duration> for MeanLifetime
impl From<Duration> for MeanLifetime
Source§impl From<MeanLifetime> for DecayConstant
impl From<MeanLifetime> for DecayConstant
Source§fn from(value: MeanLifetime) -> Self
fn from(value: MeanLifetime) -> Self
Converts to this type from the input type.
Source§impl From<MeanLifetime> for HalfLife
impl From<MeanLifetime> for HalfLife
Source§fn from(value: MeanLifetime) -> Self
fn from(value: MeanLifetime) -> Self
Converts to this type from the input type.
Source§impl Ord for MeanLifetime
impl Ord for MeanLifetime
Source§fn cmp(&self, other: &MeanLifetime) -> Ordering
fn cmp(&self, other: &MeanLifetime) -> Ordering
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 PartialEq for MeanLifetime
impl PartialEq for MeanLifetime
Source§impl PartialOrd for MeanLifetime
impl PartialOrd for MeanLifetime
impl Copy for MeanLifetime
impl Eq for MeanLifetime
impl StructuralPartialEq for MeanLifetime
Auto Trait Implementations§
impl Freeze for MeanLifetime
impl RefUnwindSafe for MeanLifetime
impl Send for MeanLifetime
impl Sync for MeanLifetime
impl Unpin for MeanLifetime
impl UnwindSafe for MeanLifetime
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