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