pub struct Money(pub f64);
Expand description
A unit type representing a dimensionless value.
Tuple Fields§
§0: f64
Implementations§
Trait Implementations§
Source§impl AddAssign for Money
impl AddAssign for Money
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moreSource§impl ApproxEq for Money
impl ApproxEq for Money
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 Money
impl<'de> Deserialize<'de> for Money
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 Money
impl Div<Activity> for Money
Source§type Output = MoneyPerActivity
type Output = MoneyPerActivity
The resulting type after applying the
/
operator.Source§impl Div<Capacity> for Money
impl Div<Capacity> for Money
Source§type Output = MoneyPerCapacity
type Output = MoneyPerCapacity
The resulting type after applying the
/
operator.Source§impl Div<Dimensionless> for Money
impl Div<Dimensionless> for Money
Source§impl Div<Flow> for Money
impl Div<Flow> for Money
Source§type Output = MoneyPerFlow
type Output = MoneyPerFlow
The resulting type after applying the
/
operator.Source§impl Div<Year> for Money
impl Div<Year> for Money
Source§type Output = MoneyPerYear
type Output = MoneyPerYear
The resulting type after applying the
/
operator.Source§impl Div for Money
impl Div for Money
Source§type Output = Dimensionless
type Output = Dimensionless
The resulting type after applying the
/
operator.Source§impl Mul<Dimensionless> for Money
impl Mul<Dimensionless> for Money
Source§impl Mul<Money> for Dimensionless
impl Mul<Money> for Dimensionless
Source§impl Mul<Money> for MoneyPerActivity
impl Mul<Money> for MoneyPerActivity
Source§impl Mul<Money> for MoneyPerCapacity
impl Mul<Money> for MoneyPerCapacity
Source§impl Mul<Money> for MoneyPerFlow
impl Mul<Money> for MoneyPerFlow
Source§impl Mul<Money> for MoneyPerYear
impl Mul<Money> for MoneyPerYear
Source§impl Mul<MoneyPerActivity> for Money
impl Mul<MoneyPerActivity> for Money
Source§impl Mul<MoneyPerCapacity> for Money
impl Mul<MoneyPerCapacity> for Money
Source§impl Mul<MoneyPerFlow> for Money
impl Mul<MoneyPerFlow> for Money
Source§impl Mul<MoneyPerYear> for Money
impl Mul<MoneyPerYear> for Money
Source§impl PartialOrd for Money
impl PartialOrd for Money
Source§impl SubAssign for Money
impl SubAssign for Money
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moreimpl Copy for Money
impl StructuralPartialEq for Money
Auto Trait Implementations§
impl Freeze for Money
impl RefUnwindSafe for Money
impl Send for Money
impl Sync for Money
impl Unpin for Money
impl UnwindSafe for Money
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