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