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