pub struct Activity(pub f64);Expand description
A basic unit type wrapper around an f64 scalar value.
Tuple Fields§
§0: f64Implementations§
Trait Implementations§
Source§impl AddAssign for Activity
impl AddAssign for Activity
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl ApproxEq for Activity
impl ApproxEq for Activity
Source§type Margin = F64Margin
type Margin = F64Margin
This type type defines a margin within which two values are to be
considered approximately equal. It must implement
Default so that
approx_eq() can be called on unknown types.Source§impl<'de> Deserialize<'de> for Activity
impl<'de> Deserialize<'de> for Activity
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Div<Activity> for Flow
impl Div<Activity> for Flow
Source§type Output = FlowPerActivity
type Output = FlowPerActivity
The resulting type after applying the
/ operator.Source§impl Div<Activity> for Money
impl Div<Activity> for Money
Source§type Output = MoneyPerActivity
type Output = MoneyPerActivity
The resulting type after applying the
/ operator.Source§impl Div<ActivityPerCapacity> for Activity
impl Div<ActivityPerCapacity> for Activity
Source§impl Div<Capacity> for Activity
impl Div<Capacity> for Activity
Source§type Output = ActivityPerCapacity
type Output = ActivityPerCapacity
The resulting type after applying the
/ operator.Source§impl Div<Dimensionless> for Activity
impl Div<Dimensionless> for Activity
Source§impl Div for Activity
impl Div for Activity
Source§type Output = Dimensionless
type Output = Dimensionless
The resulting type after applying the
/ operator.Source§impl Mul<Activity> for ActivityPerCapacity
impl Mul<Activity> for ActivityPerCapacity
Source§impl Mul<Activity> for Dimensionless
impl Mul<Activity> for Dimensionless
Source§impl Mul<Activity> for FlowPerActivity
impl Mul<Activity> for FlowPerActivity
Source§impl Mul<Activity> for MoneyPerActivity
impl Mul<Activity> for MoneyPerActivity
Source§impl Mul<ActivityPerCapacity> for Activity
impl Mul<ActivityPerCapacity> for Activity
Source§impl Mul<Dimensionless> for Activity
impl Mul<Dimensionless> for Activity
Source§impl Mul<FlowPerActivity> for Activity
impl Mul<FlowPerActivity> for Activity
Source§impl Mul<MoneyPerActivity> for Activity
impl Mul<MoneyPerActivity> for Activity
Source§impl PartialOrd for Activity
impl PartialOrd for Activity
Source§impl SubAssign for Activity
impl SubAssign for Activity
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreimpl Copy for Activity
impl StructuralPartialEq for Activity
Auto Trait Implementations§
impl Freeze for Activity
impl RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl UnwindSafe for Activity
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<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