pub struct MoneyPerFlow(pub f64);
Expand description
A unit type representing a dimensionless value.
Tuple Fields§
§0: f64
Implementations§
Source§impl MoneyPerFlow
impl MoneyPerFlow
Trait Implementations§
Source§impl Add for MoneyPerFlow
impl Add for MoneyPerFlow
Source§type Output = MoneyPerFlow
type Output = MoneyPerFlow
The resulting type after applying the
+
operator.Source§fn add(self, rhs: MoneyPerFlow) -> MoneyPerFlow
fn add(self, rhs: MoneyPerFlow) -> MoneyPerFlow
Performs the
+
operation. Read moreSource§impl AddAssign for MoneyPerFlow
impl AddAssign for MoneyPerFlow
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moreSource§impl ApproxEq for MoneyPerFlow
impl ApproxEq for MoneyPerFlow
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 Clone for MoneyPerFlow
impl Clone for MoneyPerFlow
Source§fn clone(&self) -> MoneyPerFlow
fn clone(&self) -> MoneyPerFlow
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 MoneyPerFlow
impl Debug for MoneyPerFlow
Source§impl<'de> Deserialize<'de> for MoneyPerFlow
impl<'de> Deserialize<'de> for MoneyPerFlow
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 Display for MoneyPerFlow
impl Display for MoneyPerFlow
Source§impl Div<Dimensionless> for MoneyPerFlow
impl Div<Dimensionless> for MoneyPerFlow
Source§type Output = MoneyPerFlow
type Output = MoneyPerFlow
The resulting type after applying the
/
operator.Source§fn div(self, rhs: Dimensionless) -> MoneyPerFlow
fn div(self, rhs: Dimensionless) -> MoneyPerFlow
Performs the
/
operation. Read moreSource§impl Div for MoneyPerFlow
impl Div for MoneyPerFlow
Source§type Output = Dimensionless
type Output = Dimensionless
The resulting type after applying the
/
operator.Source§fn div(self, rhs: MoneyPerFlow) -> Dimensionless
fn div(self, rhs: MoneyPerFlow) -> Dimensionless
Performs the
/
operation. Read moreSource§impl Mul<Dimensionless> for MoneyPerFlow
impl Mul<Dimensionless> for MoneyPerFlow
Source§type Output = MoneyPerFlow
type Output = MoneyPerFlow
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Dimensionless) -> MoneyPerFlow
fn mul(self, rhs: Dimensionless) -> MoneyPerFlow
Performs the
*
operation. Read moreSource§impl Mul<Flow> for MoneyPerFlow
impl Mul<Flow> for MoneyPerFlow
Source§impl Mul<FlowPerActivity> for MoneyPerFlow
impl Mul<FlowPerActivity> for MoneyPerFlow
Source§type Output = MoneyPerActivity
type Output = MoneyPerActivity
The resulting type after applying the
*
operator.Source§fn mul(self, by: FlowPerActivity) -> MoneyPerActivity
fn mul(self, by: FlowPerActivity) -> MoneyPerActivity
Performs the
*
operation. Read moreSource§impl Mul<Money> for MoneyPerFlow
impl Mul<Money> for MoneyPerFlow
Source§impl Mul<MoneyPerActivity> for MoneyPerFlow
impl Mul<MoneyPerActivity> for MoneyPerFlow
Source§type Output = FlowPerActivity
type Output = FlowPerActivity
The resulting type after applying the
*
operator.Source§fn mul(self, by: MoneyPerActivity) -> FlowPerActivity
fn mul(self, by: MoneyPerActivity) -> FlowPerActivity
Performs the
*
operation. Read moreSource§impl Mul<MoneyPerFlow> for Dimensionless
impl Mul<MoneyPerFlow> for Dimensionless
Source§type Output = MoneyPerFlow
type Output = MoneyPerFlow
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: MoneyPerFlow) -> MoneyPerFlow
fn mul(self, rhs: MoneyPerFlow) -> MoneyPerFlow
Performs the
*
operation. Read moreSource§impl Mul<MoneyPerFlow> for Flow
impl Mul<MoneyPerFlow> for Flow
Source§impl Mul<MoneyPerFlow> for FlowPerActivity
impl Mul<MoneyPerFlow> for FlowPerActivity
Source§type Output = MoneyPerActivity
type Output = MoneyPerActivity
The resulting type after applying the
*
operator.Source§fn mul(self, by: MoneyPerFlow) -> MoneyPerActivity
fn mul(self, by: MoneyPerFlow) -> MoneyPerActivity
Performs the
*
operation. Read moreSource§impl Mul<MoneyPerFlow> for Money
impl Mul<MoneyPerFlow> for Money
Source§impl Mul<MoneyPerFlow> for MoneyPerActivity
impl Mul<MoneyPerFlow> for MoneyPerActivity
Source§type Output = FlowPerActivity
type Output = FlowPerActivity
The resulting type after applying the
*
operator.Source§fn mul(self, by: MoneyPerFlow) -> FlowPerActivity
fn mul(self, by: MoneyPerFlow) -> FlowPerActivity
Performs the
*
operation. Read moreSource§impl PartialEq for MoneyPerFlow
impl PartialEq for MoneyPerFlow
Source§impl PartialOrd for MoneyPerFlow
impl PartialOrd for MoneyPerFlow
Source§impl Serialize for MoneyPerFlow
impl Serialize for MoneyPerFlow
Source§impl Sub for MoneyPerFlow
impl Sub for MoneyPerFlow
Source§type Output = MoneyPerFlow
type Output = MoneyPerFlow
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: MoneyPerFlow) -> MoneyPerFlow
fn sub(self, rhs: MoneyPerFlow) -> MoneyPerFlow
Performs the
-
operation. Read moreSource§impl SubAssign for MoneyPerFlow
impl SubAssign for MoneyPerFlow
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moreSource§impl Sum for MoneyPerFlow
impl Sum for MoneyPerFlow
impl Copy for MoneyPerFlow
impl StructuralPartialEq for MoneyPerFlow
Auto Trait Implementations§
impl Freeze for MoneyPerFlow
impl RefUnwindSafe for MoneyPerFlow
impl Send for MoneyPerFlow
impl Sync for MoneyPerFlow
impl Unpin for MoneyPerFlow
impl UnwindSafe for MoneyPerFlow
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