pub struct Utilized<T, S = bool>(pub T, pub S);Expand description
Represents a time-weighted sample that can effectively be used to calculate the utilization rate of model elements by tabulating (time-index, state) pairs for every state change.
Tuple Fields§
§0: TThe time index.
1: SThe value.
Trait Implementations§
impl<T: Copy, S: Copy> Copy for Utilized<T, S>
impl<T: Eq, S: Eq> Eq for Utilized<T, S>
Source§impl<T: PartialEq, S: PartialEq> PartialEq for Utilized<T, S>
impl<T: PartialEq, S: PartialEq> PartialEq for Utilized<T, S>
impl<T: PartialEq, S: PartialEq> StructuralPartialEq for Utilized<T, S>
Source§impl<T, S: Sample> Weighable for Utilized<T, S>
impl<T, S: Sample> Weighable for Utilized<T, S>
Source§fn sample<const M: usize>(
self,
rv: &RandomVariable<Self, M>,
) -> Result<(), Self::Error>where
CentralMoments<M>: Univariate,
fn sample<const M: usize>(
self,
rv: &RandomVariable<Self, M>,
) -> Result<(), Self::Error>where
CentralMoments<M>: Univariate,
Adds this value to the collection of values represented by the random
variable.
Auto Trait Implementations§
impl<T, S> Freeze for Utilized<T, S>
impl<T, S> RefUnwindSafe for Utilized<T, S>where
T: RefUnwindSafe,
S: RefUnwindSafe,
impl<T, S> Send for Utilized<T, S>
impl<T, S> Sync for Utilized<T, S>
impl<T, S> Unpin for Utilized<T, S>
impl<T, S> UnsafeUnpin for Utilized<T, S>where
T: UnsafeUnpin,
S: UnsafeUnpin,
impl<T, S> UnwindSafe for Utilized<T, S>where
T: UnwindSafe,
S: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more